* [avpatel:riscv_sbi_nested_v1 52/73] drivers/irqchip/irq-riscv-imsic.c:107:36: warning: variable 'config' set but not used
@ 2023-04-28 22:42 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-28 22:42 UTC (permalink / raw)
To: Anup Patel; +Cc: llvm, oe-kbuild-all
Hi Anup,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://github.com/avpatel/linux.git riscv_sbi_nested_v1
head: 00757ea0bfa14ae06d3f42144633ba253d6d5f5e
commit: a3617561d0ab814429c04120522bed7aed228f0c [52/73] RISC-V: Select APLIC and IMSIC drivers
config: riscv-randconfig-r001-20230428 (https://download.01.org/0day-ci/archive/20230429/202304290647.TmTb7sk8-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661)
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/a3617561d0ab814429c04120522bed7aed228f0c
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_sbi_nested_v1
git checkout a3617561d0ab814429c04120522bed7aed228f0c
# 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/irqchip/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304290647.TmTb7sk8-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-riscv-imsic.c:107:36: warning: variable 'config' set but not used [-Wunused-but-set-variable]
const struct imsic_global_config *config = NULL;
^
1 warning generated.
vim +/config +107 drivers/irqchip/irq-riscv-imsic.c
667be2105a0f1c Anup Patel 2022-01-18 103
667be2105a0f1c Anup Patel 2022-01-18 104 const struct imsic_global_config *imsic_get_global_config(void)
667be2105a0f1c Anup Patel 2022-01-18 105 {
667be2105a0f1c Anup Patel 2022-01-18 106 struct imsic_handler *handler = get_cpu_ptr(&imsic_handlers);
667be2105a0f1c Anup Patel 2022-01-18 @107 const struct imsic_global_config *config = NULL;
667be2105a0f1c Anup Patel 2022-01-18 108
667be2105a0f1c Anup Patel 2022-01-18 109 if (handler->priv)
667be2105a0f1c Anup Patel 2022-01-18 110 config = &handler->priv->global;
667be2105a0f1c Anup Patel 2022-01-18 111
667be2105a0f1c Anup Patel 2022-01-18 112 put_cpu_ptr(&imsic_handlers);
667be2105a0f1c Anup Patel 2022-01-18 113 return &handler->priv->global;
667be2105a0f1c Anup Patel 2022-01-18 114 }
667be2105a0f1c Anup Patel 2022-01-18 115 EXPORT_SYMBOL_GPL(imsic_get_global_config);
667be2105a0f1c Anup Patel 2022-01-18 116
:::::: The code at line 107 was first introduced by commit
:::::: 667be2105a0f1cfa30e379c15b3a942cb6dff019 irqchip: Add RISC-V incoming MSI controller driver
:::::: TO: Anup Patel <apatel@ventanamicro.com>
:::::: CC: Anup Patel <anup@brainfault.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-28 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28 22:42 [avpatel:riscv_sbi_nested_v1 52/73] drivers/irqchip/irq-riscv-imsic.c:107:36: warning: variable 'config' 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;
as well as URLs for NNTP newsgroup(s).