[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112272015.GBtofHiu-lkp@intel.com>
Date: Mon, 27 Dec 2021 20:18:55 +0800
From: kernel test robot <lkp@...el.com>
To: Anup Patel <anup.patel@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [avpatel:riscv_aia_v1 30/34]
drivers/irqchip/irq-riscv-imsic.c:142:30: warning: variable 'global' set but
not used
tree: https://github.com/avpatel/linux.git riscv_aia_v1
head: ab1dc4967c46d77179ef56870a5d556c61aa9b0c
commit: 595f7c41a6420b47ceb2abc4d603237f53711ca5 [30/34] irqchip: Add incoming MSI controller driver
config: riscv-randconfig-r001-20211227 (https://download.01.org/0day-ci/archive/20211227/202112272015.GBtofHiu-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 511726c64d3b6cca66f7c54d457d586aa3129f67)
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/595f7c41a6420b47ceb2abc4d603237f53711ca5
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_aia_v1
git checkout 595f7c41a6420b47ceb2abc4d603237f53711ca5
# 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@...el.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
Powered by blists - more mailing lists