mips-linux-gnu-ld: arch/mips/mm/cache.o: in function `cpu_cache_init': cache.c:(.text+0x4f8): undefined reference to `octeon_cache_init'

From: Naresh Kamboju
Date: Tue Dec 05 2023 - 01:02:14 EST


Following build errors reported on MIPS with gcc-8 while building
Linux next-20231205 tag.
But gcc-12 builds pass.

mips-linux-gnu-ld: arch/mips/mm/cache.o: in function `cpu_cache_init':
cache.c:(.text+0x4f8): undefined reference to `octeon_cache_init'

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231205/testrun/21486880/suite/build/test/gcc-8-malta_defconfig/log
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231205/testrun/21486880/suite/build/test/gcc-8-malta_defconfig/details/


--
Linaro LKFT
https://lkft.linaro.org