All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:genirq 35/56] arch/arm/kernel/smp.c:544:16: warning: variable 'irq' set but not used
@ 2020-12-11  8:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-11  8:17 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3832 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git genirq
head:   53cc7c5b089bb7f673fc14f830c4a5d665812b1d
commit: 0b1d6bdfe64f977586bbe94a054d82dd816a0aeb [35/56] ARM: smp: Use irq_desc_kstat_cpu() in show_ipi_list()
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=0b1d6bdfe64f977586bbe94a054d82dd816a0aeb
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel genirq
        git checkout 0b1d6bdfe64f977586bbe94a054d82dd816a0aeb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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 >>):

   arch/arm/kernel/smp.c: In function 'show_ipi_list':
>> arch/arm/kernel/smp.c:544:16: warning: variable 'irq' set but not used [-Wunused-but-set-variable]
     544 |   unsigned int irq;
         |                ^~~
   arch/arm/kernel/smp.c: At top level:
   arch/arm/kernel/smp.c:575:6: warning: no previous prototype for 'arch_irq_work_raise' [-Wmissing-prototypes]
     575 | void arch_irq_work_raise(void)
         |      ^~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/smp.c:779:6: warning: no previous prototype for 'panic_smp_self_stop' [-Wmissing-prototypes]
     779 | void panic_smp_self_stop(void)
         |      ^~~~~~~~~~~~~~~~~~~
   arch/arm/kernel/smp.c:791:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]
     791 | int setup_profiling_timer(unsigned int multiplier)
         |     ^~~~~~~~~~~~~~~~~~~~~

vim +/irq +544 arch/arm/kernel/smp.c

365ec7b1732732 Nicolas Pitre   2014-07-25  538  
f13cd4170ee789 Russell King    2010-11-15  539  void show_ipi_list(struct seq_file *p, int prec)
^1da177e4c3f41 Linus Torvalds  2005-04-16  540  {
4a88abd7b48e8e Russell King    2010-11-15  541  	unsigned int cpu, i;
^1da177e4c3f41 Linus Torvalds  2005-04-16  542  
4a88abd7b48e8e Russell King    2010-11-15  543  	for (i = 0; i < NR_IPI; i++) {
220387048d8598 Marc Zyngier    2020-09-25 @544  		unsigned int irq;
220387048d8598 Marc Zyngier    2020-09-25  545  
220387048d8598 Marc Zyngier    2020-09-25  546  		if (!ipi_desc[i])
220387048d8598 Marc Zyngier    2020-09-25  547  			continue;
220387048d8598 Marc Zyngier    2020-09-25  548  
220387048d8598 Marc Zyngier    2020-09-25  549  		irq = irq_desc_get_irq(ipi_desc[i]);
4a88abd7b48e8e Russell King    2010-11-15  550  		seq_printf(p, "%*s%u: ", prec - 1, "IPI", i);
^1da177e4c3f41 Linus Torvalds  2005-04-16  551  
026b7c6bf0bf04 Nicolas Pitre   2012-12-03  552  		for_each_online_cpu(cpu)
0b1d6bdfe64f97 Thomas Gleixner 2020-12-10  553  			seq_printf(p, "%10u ", irq_desc_kstat_cpu(ipi_desc[i], cpu));
^1da177e4c3f41 Linus Torvalds  2005-04-16  554  
4a88abd7b48e8e Russell King    2010-11-15  555  		seq_printf(p, " %s\n", ipi_types[i]);
4a88abd7b48e8e Russell King    2010-11-15  556  	}
^1da177e4c3f41 Linus Torvalds  2005-04-16  557  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  558  

:::::: The code@line 544 was first introduced by commit
:::::: 220387048d859896ccc362c0ebf9bc1e0fa62eb9 ARM: Handle no IPI being registered in show_ipi_list()

:::::: TO: Marc Zyngier <maz@kernel.org>
:::::: CC: Marc Zyngier <maz@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 53663 bytes --]

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

only message in thread, other threads:[~2020-12-11  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-11  8:17 [tglx-devel:genirq 35/56] arch/arm/kernel/smp.c:544:16: warning: variable 'irq' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.