diff options
author | Arnd Bergmann <[email protected]> | 2023-12-14 20:54:47 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-12-20 15:02:57 -0800 |
commit | bbe4f634f48cd832aa43e7f5a4edc7494ef7ff5f (patch) | |
tree | 624ba663af14a2b9bcb65c74ae8b764dd3099cc6 /lib/test_fortify/write_overflow-strncpy.c | |
parent | fc0fbad122a7609d785ee754c2b6e1e3265547d0 (diff) |
mips: fix r3k_cache_init build regression
My earlier patch removed __weak function declarations that used to be
turned into wild branches by the linker, instead causing a link failure
when the called functions are unavailable:
mips-linux-ld: arch/mips/mm/cache.o: in function `cpu_cache_init':
cache.c:(.text+0x670): undefined reference to `r3k_cache_init'
The __weak method seems suboptimal, so rather than putting that back, make
the function calls conditional on the Kconfig symbol that controls the
compilation.
[[email protected]: fix whitespace while we're in there]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 66445677f01e ("mips: move cache declarations into header")
Signed-off-by: Arnd Bergmann <[email protected]>
Reported-by: kernelci.org bot <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions