diff options
author | 2023-08-09 23:10:50 +0200 | |
---|---|---|
committer | 2023-08-21 13:27:44 +0200 | |
commit | 1a48e2ccd4385caa9ad9659ac8f9d75affacc9da (patch) | |
tree | 11aee6a2d0bdac53c8d5f31ffb4da406d64eb1d5 /arch/m68k/include | |
parent | m68k: Define __div64_32() to avoid a warning (diff) | |
download | linux-1a48e2ccd4385caa9ad9659ac8f9d75affacc9da.tar.gz linux-1a48e2ccd4385caa9ad9659ac8f9d75affacc9da.tar.bz2 linux-1a48e2ccd4385caa9ad9659ac8f9d75affacc9da.zip |
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 <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20230809211057.60514-2-arnd@kernel.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/string.h b/arch/m68k/include/asm/string.h index f0f5021d6327..760cc13acdf4 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 |