[csky-linux:riscv_compat_v6_svpbmt-v6 12/35] WARNING: modpost: vmlinux.o(.text.unlikely+0x8dc): Section mismatch in reference from the function riscv_cpufeature_patch_func() to the function .init.text:cpufeature_probe()

From: kernel test robot
Date: Thu Feb 10 2022 - 14:26:10 EST


tree: https://github.com/c-sky/csky-linux riscv_compat_v6_svpbmt-v6
head: 54acb36c958fc990cc59889f79c8ddca7386c295
commit: bac41a3372f9586652716665df9da6c4059b9309 [12/35] riscv: add RISC-V Svpbmt extension support
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220211/202202110359.05keld0L-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/c-sky/csky-linux/commit/bac41a3372f9586652716665df9da6c4059b9309
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux riscv_compat_v6_svpbmt-v6
git checkout bac41a3372f9586652716665df9da6c4059b9309
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> WARNING: modpost: vmlinux.o(.text.unlikely+0x8dc): Section mismatch in reference from the function riscv_cpufeature_patch_func() to the function .init.text:cpufeature_probe()
The function riscv_cpufeature_patch_func() references
the function __init cpufeature_probe().
This is often because riscv_cpufeature_patch_func lacks a __init
annotation or the annotation of cpufeature_probe is wrong.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx