tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c1649ec55708ae42091a2f1bca1ab49ecd722d55 commit: 6abf32f1d9c5009dcccded2c1e7ca899a4ab587b cpuidle: Add RISC-V SBI CPU idle driver date: 10 months ago config: riscv-randconfig-r026-20230117 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a) 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6abf32f1d9c5009dcccded2c1e7ca899a4ab587b git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 6abf32f1d9c5009dcccded2c1e7ca899a4ab587b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/cpuidle/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/cpuidle/cpuidle-riscv-sbi.c:46:20: warning: unused function 'sbi_set_domain_state' [-Wunused-function] static inline void sbi_set_domain_state(u32 state) ^ 1 warning generated. vim +/sbi_set_domain_state +46 drivers/cpuidle/cpuidle-riscv-sbi.c 45 > 46 static inline void sbi_set_domain_state(u32 state) 47 { 48 struct sbi_domain_state *data = this_cpu_ptr(&domain_state); 49 50 data->available = true; 51 data->state = state; 52 } 53 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests