LKML Archive mirror
 help / color / mirror / Atom feed
* [avpatel:riscv_aia_v1 30/34] drivers/irqchip/irq-riscv-imsic.c:142:30: warning: variable 'global' set but not used
@ 2021-12-27 12:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-27 12:18 UTC (permalink / raw
  To: Anup Patel; +Cc: llvm, kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-27 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-27 12:18 [avpatel:riscv_aia_v1 30/34] drivers/irqchip/irq-riscv-imsic.c:142:30: warning: variable 'global' 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 read-only IMAP folder(s) and NNTP newsgroup(s).