aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2022-09-07 16:05:56 -0700
committerThomas Bogendoerfer <[email protected]>2022-09-19 16:46:01 +0200
commit0dedcf6e3301836eb70cfa649052e7ce4fcd13ba (patch)
tree50214893ba8350e362255a4056762eeb30fbf576 /lib/mpi/mpi-mod.c
parent53f9cd5c16a57076ba1ef01c62299fa899bd83b3 (diff)
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 <[email protected]> Cc: "Rafał Miłecki" <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: [email protected] Cc: Nathan Chancellor <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: [email protected] Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions