OpenCloudOS-Kernel/arch/mips/bcm47xx
Kees Cook 0dedcf6e33 MIPS: BCM47XX: Cast memcmp() of function to (void *)
Clang is especially sensitive about argument type matching when using
__overloaded functions (like memcmp(), etc). Help it see that function
pointers are just "void *". Avoids this error:

arch/mips/bcm47xx/prom.c:89:8: error: no matching function for call to 'memcmp'
                   if (!memcmp(prom_init, prom_init + mem, 32))
                        ^~~~~~
include/linux/string.h:156:12: note: candidate function not viable: no known conversion from 'void (void)' to 'const void *' for 1st argument extern int memcmp(const void *,const void *,__kernel_size_t);

Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: "Rafał Miłecki" <zajec5@gmail.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: llvm@lists.linux.dev
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/202209080652.sz2d68e5-lkp@intel.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2022-09-19 16:46:01 +02:00
..
Kconfig MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA 2020-11-12 23:21:55 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Platform MIPS: new Kconfig option ZBOOT_LOAD_ADDRESS 2022-01-02 14:17:30 +01:00
bcm47xx_private.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board.c MIPS: BCM47XX: Add support for Netgear WNR3500L v2 2022-07-15 14:22:47 +02:00
buttons.c MIPS: BCM47XX: Add support for Netgear WNR3500L v2 2022-07-15 14:22:47 +02:00
irq.c MIPS: BCM47XX: Initialize bcma bus later (with mm available) 2014-11-24 07:45:00 +01:00
leds.c MIPS: BCM47XX: Add support for Netgear WNR3500L v2 2022-07-15 14:22:47 +02:00
prom.c MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-09-19 16:46:01 +02:00
serial.c MIPS: BCM47xx: Make serial explicitly non-modular 2016-10-04 16:13:57 +02:00
setup.c MIPS updates for v5.10: 2020-10-16 12:40:55 -07:00
time.c MIPS: BCM47XX: Fix coding style to match kernel standards 2015-04-01 17:22:10 +02:00
workarounds.c MIPS: BCM47XX: Add support for Netgear WNR3500L v2 2022-07-15 14:22:47 +02:00