pmem.c:undefined reference to `noncoherent_cache_ops'

From: kernel test robot
Date: Fri Oct 27 2023 - 18:07:04 EST


Hi Christoph,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 888cf78c29e223fd808682f477c18cf8f61ad995
commit: fd962781270e6452dd5b30c8aa0b3b0fbee06244 riscv: RISCV_NONSTANDARD_CACHE_OPS shouldn't depend on RISCV_DMA_NONCOHERENT
date: 2 days ago
config: riscv-randconfig-001-20231028 (https://download.01.org/0day-ci/archive/20231028/202310280552.Yiukmvy2-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231028/202310280552.Yiukmvy2-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310280552.Yiukmvy2-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

riscv64-linux-ld: arch/riscv/mm/pmem.o: in function `arch_wb_cache_pmem':
>> pmem.c:(.text+0x0): undefined reference to `noncoherent_cache_ops'
riscv64-linux-ld: arch/riscv/mm/pmem.o: in function `arch_invalidate_pmem':
pmem.c:(.text+0x9c): undefined reference to `noncoherent_cache_ops'
riscv64-linux-ld: drivers/cache/ax45mp_cache.o: in function `.L8':
>> ax45mp_cache.c:(.init.text+0x104): undefined reference to `riscv_noncoherent_register_cache_ops'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki