From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tglx-devel:genirq 35/56] arch/arm/kernel/smp.c:544:16: warning: variable 'irq' set but not used
Date: Fri, 11 Dec 2020 16:17:53 +0800 [thread overview]
Message-ID: <202012111644.crVCBc2q-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2020-12-11 8:17 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=202012111644.crVCBc2q-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.