android_kernel_xiaomi_sm7250/arch/mips
Kees Cook 21c1fa5fb0 MIPS: BCM47XX: Cast memcmp() of function to (void *)
[ Upstream commit 0dedcf6e3301836eb70cfa649052e7ce4fcd13ba ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:19:36 +02:00
..
alchemy
ar7
ath25
ath79
bcm47xx MIPS: BCM47XX: Cast memcmp() of function to (void *) 2022-10-26 13:19:36 +02:00
bcm63xx
bmips MIPS: Use address-of operator on section symbols 2022-05-15 19:41:57 +02:00
boot
cavium-octeon MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() 2022-09-28 11:02:53 +02:00
cobalt
configs
crypto
dec DEC: Limit PMAX memory probing to R3k systems 2022-04-15 14:14:42 +02:00
emma
fw
generic MIPS: fix allmodconfig build with latest mkimage 2022-05-18 09:42:50 +02:00
include mips: use fallback for random_get_entropy() instead of just c0 random 2022-06-25 11:49:10 +02:00
jazz
jz4740
kernel MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-08-25 11:14:56 +02:00
kvm
lantiq MIPS: lantiq: export clk_get_io() for lantiq_wdt.ko 2022-09-28 11:02:56 +02:00
lasat
lib
loongson32 MIPS: loongson32: ls1c: Fix hang during startup 2022-09-15 12:17:06 +02:00
loongson64
math-emu
mm MIPS: tlbex: Explicitly compare _PAGE_NO_EXEC against 0 2022-08-25 11:15:47 +02:00
mti-malta
net
netlogic
oprofile
paravirt
pci
pic32 MIPS: Use address-of operator on section symbols 2022-05-15 19:41:57 +02:00
pistachio
pmcs-msp71xx
pnx833x
power
ralink MIPS: Use address-of operator on section symbols 2022-05-15 19:41:57 +02:00
rb532 MIPS: RB532: fix return value of __setup handler 2022-04-15 14:14:50 +02:00
sgi-ip22
sgi-ip27
sgi-ip32
sibyte
sni
tools
txx9
vdso
vr41xx MIPS: Remove repetitive increase irq_err_count 2022-07-02 16:27:33 +02:00
Kbuild
Kbuild.platforms
Kconfig
Kconfig.debug
Makefile
Makefile.postlink