From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [printk:rework/printk_safe-removal 1/6] lib/nmi_backtrace.c:106 nmi_cpu_backtrace() error: uninitialized symbol 'flags'.
Date: Tue, 27 Jul 2021 15:56:46 +0800 [thread overview]
Message-ID: <202107271536.Z4IN3DAq-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2322 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: John Ogness <john.ogness@linutronix.de>
CC: Petr Mladek <pmladek@suse.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git rework/printk_safe-removal
head: 8d909b2333f37e5da84a9e6a2cbe21f52be5f42a
commit: 55d6af1d66885059ffc2ac23083de52d12be63bb [1/6] lib/nmi_backtrace: explicitly serialize banner and regs
:::::: branch date: 19 hours ago
:::::: commit date: 19 hours ago
config: i386-randconfig-m021-20210726 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
lib/nmi_backtrace.c:106 nmi_cpu_backtrace() error: uninitialized symbol 'flags'.
vim +/flags +106 lib/nmi_backtrace.c
160c7ba34605d9 Paul E. McKenney 2020-07-08 91
b2c0b2cbb282f0 Russell King 2014-09-03 92 bool nmi_cpu_backtrace(struct pt_regs *regs)
b2c0b2cbb282f0 Russell King 2014-09-03 93 {
b2c0b2cbb282f0 Russell King 2014-09-03 94 int cpu = smp_processor_id();
55d6af1d668850 John Ogness 2021-07-15 95 unsigned long flags;
b2c0b2cbb282f0 Russell King 2014-09-03 96
b2c0b2cbb282f0 Russell King 2014-09-03 97 if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
160c7ba34605d9 Paul E. McKenney 2020-07-08 98 if (!READ_ONCE(backtrace_idle) && regs && cpu_in_idle(instruction_pointer(regs))) {
2f9b7e08cb27d6 Liu, Changcheng 2017-11-17 99 pr_warn("NMI backtrace for cpu %d skipped: idling at %pS\n",
2f9b7e08cb27d6 Liu, Changcheng 2017-11-17 100 cpu, (void *)instruction_pointer(regs));
6727ad9e206cc0 Chris Metcalf 2016-10-07 101 } else {
55d6af1d668850 John Ogness 2021-07-15 102 /*
55d6af1d668850 John Ogness 2021-07-15 103 * Allow nested NMI backtraces while serializing
55d6af1d668850 John Ogness 2021-07-15 104 * against other CPUs.
55d6af1d668850 John Ogness 2021-07-15 105 */
55d6af1d668850 John Ogness 2021-07-15 @106 printk_cpu_lock_irqsave(flags);
---
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: 30087 bytes --]
reply other threads:[~2021-07-27 7:56 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=202107271536.Z4IN3DAq-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@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.