From: Arnd Bergmann Date: Wed, 9 Aug 2023 21:10:50 +0000 (+0200) Subject: m68k: Add memcmp() declaration X-Git-Tag: v6.6.7~2102^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a48e2ccd4385caa9ad9659ac8f9d75affacc9da;p=platform%2Fkernel%2Flinux-starfive.git m68k: Add memcmp() declaration There is a global definition of memcmp() that gets built on m68k but is never used and causes a warning because of the missing prototype: lib/string.c:671:15: error: no previous prototype for 'memcmp' [-Werror=missing-prototypes] Add the corresponding declaration to avoid the warning. Signed-off-by: Arnd Bergmann Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20230809211057.60514-2-arnd@kernel.org Signed-off-by: Geert Uytterhoeven --- diff --git a/arch/m68k/include/asm/string.h b/arch/m68k/include/asm/string.h index f0f5021..760cc13 100644 --- a/arch/m68k/include/asm/string.h +++ b/arch/m68k/include/asm/string.h @@ -41,6 +41,7 @@ static inline char *strncpy(char *dest, const char *src, size_t n) #define __HAVE_ARCH_MEMMOVE extern void *memmove(void *, const void *, __kernel_size_t); +extern int memcmp(const void *, const void *, __kernel_size_t); #define memcmp(d, s, n) __builtin_memcmp(d, s, n) #define __HAVE_ARCH_MEMSET