summaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-09-07 16:05:56 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-21 12:39:04 +0200
commit0d880bf62bfa2054b2b5a68f89213228cd8ac0bc (patch)
tree4c55472fff67a65c36f8ad28901de293eacb264a /arch/ia64
parent4d724a591c619a4f72ccbd2a14abd4e5f35cee03 (diff)
downloadlinux-stable-0d880bf62bfa2054b2b5a68f89213228cd8ac0bc.tar.gz
linux-stable-0d880bf62bfa2054b2b5a68f89213228cd8ac0bc.tar.bz2
linux-stable-0d880bf62bfa2054b2b5a68f89213228cd8ac0bc.zip
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>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions