From: kernel test robot <lkp@intel.com>
To: Anup Patel <anup.patel@wdc.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [avpatel:riscv_aia_v1 30/34] drivers/irqchip/irq-riscv-imsic.c:142:30: warning: variable 'global' set but not used
Date: Mon, 27 Dec 2021 20:18:55 +0800 [thread overview]
Message-ID: <202112272015.GBtofHiu-lkp@intel.com> (raw)
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@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
reply other threads:[~2021-12-27 12:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202112272015.GBtofHiu-lkp@intel.com \
--to=lkp@intel.com \
--cc=anup.patel@wdc.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®