[ammarfaizi2-block:palmer/linux/riscv-d1 10/12] WARNING: modpost: vmlinux.o(.text.unlikely+0x1dc): Section mismatch in reference from the function riscv_cpufeature_patch_func() to the function .init.text:cpufeature_probe()

From: kernel test robot
Date: Tue Mar 08 2022 - 06:13:52 EST


tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-d1
head: b3cda759adb0111b5b3efd3a0b986864b647a94a
commit: e1dda1383ff02ab54b09c2173527ee1e79a220ba [10/12] riscv: add RISC-V Svpbmt extension support
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20220308/202203081902.SJP6xqjp-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/ammarfaizi2/linux-block/commit/e1dda1383ff02ab54b09c2173527ee1e79a220ba
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-d1
git checkout e1dda1383ff02ab54b09c2173527ee1e79a220ba
# 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+0x1dc): 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