Messages in this thread | | | Date | Fri, 31 Dec 2021 17:23:31 +0800 | From | kernel test robot <> | Subject | [avpatel:riscv_kvm_aia_v1 30/42] drivers/irqchip/irq-riscv-imsic.c:142:30: warning: variable 'global' set but not used |
| |
tree: https://github.com/avpatel/linux.git riscv_kvm_aia_v1 head: 6fa93cde61f5f84422bd3f97b9db6e2406a344dd commit: 608f1fa0b6d8185a467e90300c3279f63214e7b7 [30/42] irqchip: Add RISC-V incoming MSI controller driver config: riscv-randconfig-r042-20211231 (https://download.01.org/0day-ci/archive/20211231/202112311701.yUVrwIaS-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7cd109b92c72855937273a6c8ab19016fbe27d33) 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/avpatel/linux/commit/608f1fa0b6d8185a467e90300c3279f63214e7b7 git remote add avpatel https://github.com/avpatel/linux.git git fetch --no-tags avpatel riscv_kvm_aia_v1 git checkout 608f1fa0b6d8185a467e90300c3279f63214e7b7 # 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 drivers/irqchip/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-riscv-imsic.c:142:30: warning: variable 'global' set but not used [-Wunused-but-set-variable] struct imsic_global_config *global; ^ drivers/irqchip/irq-riscv-imsic.c:138:22: warning: unused function 'imsic_cpu_page_virt' [-Wunused-function] static void __iomem *imsic_cpu_page_virt(unsigned int cpu, ^ 2 warnings generated.
vim +/global +142 drivers/irqchip/irq-riscv-imsic.c
137 138 static void __iomem *imsic_cpu_page_virt(unsigned int cpu, 139 unsigned int guest_index) 140 { 141 struct imsic_handler *handler = per_cpu_ptr(&imsic_handlers, cpu); > 142 struct imsic_global_config *global; 143 struct imsic_local_config *local; 144 145 if (!handler || !handler->priv) 146 return NULL; 147 local = &handler->local; 148 global = &handler->priv->global; 149 150 return local->msi_va + (guest_index * IMSIC_MMIO_PAGE_SZ); 151 } 152
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |