crypto: spacc - Add ifndef around MIN
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Aug 2024 00:42:35 +0000 (10:42 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Aug 2024 04:13:56 +0000 (12:13 +0800)
Fixup for "crypto: spacc - Add SPAcc Skcipher support"
interacting with commit

  1a251f52cfdc ("minmax: make generic MIN() and MAX() macros available everywhere")

from Linus' tree.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reintroduced MIN macro with ifndef around it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/dwc-spacc/spacc_manager.c

index 3b26b27..d42ae49 100644 (file)
@@ -1,8 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0
 
+#include <linux/minmax.h>
 #include "spacc_core.h"
 
+#ifndef MIN
 #define MIN(x, y) (((x) < (y)) ? (x) : (y))
+#endif
 
 /* prevent reading past the end of the buffer */
 static void read_from_buf(unsigned char *dst, unsigned char *src,