* [ammarfaizi2-block:palmer/linux/riscv-d1 8/12] arch/riscv/kernel/cpufeature.c:185:6: warning: variable 'cpu_apply_feature' set but not used
@ 2022-03-08 9:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-08 9:09 UTC (permalink / raw)
To: Heiko Stuebner
Cc: llvm, kbuild-all, GNU/Weeb Mailing List, linux-kernel, Palmer Dabbelt
tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-d1
head: b3cda759adb0111b5b3efd3a0b986864b647a94a
commit: 012cee7ecac542dd3206bee731da0868353eef21 [8/12] riscv: add cpufeature handling via alternatives
config: riscv-randconfig-r005-20220308 (https://download.01.org/0day-ci/archive/20220308/[email protected]/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/012cee7ecac542dd3206bee731da0868353eef21
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-d1
git checkout 012cee7ecac542dd3206bee731da0868353eef21
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
>> arch/riscv/kernel/cpufeature.c:185:6: warning: variable 'cpu_apply_feature' set but not used [-Wunused-but-set-variable]
u32 cpu_apply_feature = 0;
^
1 warning generated.
vim +/cpu_apply_feature +185 arch/riscv/kernel/cpufeature.c
180
181 void riscv_cpufeature_patch_func(struct alt_entry *begin, struct alt_entry *end,
182 unsigned int stage)
183 {
184 u32 cpu_req_feature = cpufeature_probe(stage);
> 185 u32 cpu_apply_feature = 0;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-08 9:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08 9:09 [ammarfaizi2-block:palmer/linux/riscv-d1 8/12] arch/riscv/kernel/cpufeature.c:185:6: warning: variable 'cpu_apply_feature' set but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox