From: kbuild test robot <lkp@intel.com>
To: Waiman Long <longman@redhat.com>
Cc: kbuild-all@lists.01.org, Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>, Will Deacon <will.deacon@arm.com>,
linux-kernel@vger.kernel.org,
Bart Van Assche <bvanassche@acm.org>,
Waiman Long <longman@redhat.com>
Subject: Re: [PATCH v3 2/8] locking/lockdep: Display irq_context names in /proc/lockdep_chains
Date: Sat, 18 Jan 2020 06:12:01 +0800 [thread overview]
Message-ID: <202001180640.9i2OvpjJ%lkp@intel.com> (raw)
In-Reply-To: <20200115214313.13253-3-longman@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 3790 bytes --]
Hi Waiman,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/auto-latest linus/master arm-perf/for-next/perf v5.5-rc6 next-20200117]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Waiman-Long/locking-lockdep-Reuse-zapped-chain_hlocks-entries/20200117-093009
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 1a365e822372ba24c9da0822bc583894f6f3d821
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/locking/lockdep_proc.c: In function 'lc_show':
>> kernel/locking/lockdep_proc.c:133:4: error: 'LOCK_CHAIN_HARDIRQ_CONTEXT' undeclared (first use in this function); did you mean 'LOCK_USED_IN_HARDIRQ_READ'?
[LOCK_CHAIN_HARDIRQ_CONTEXT] = "hardirq",
^~~~~~~~~~~~~~~~~~~~~~~~~~
LOCK_USED_IN_HARDIRQ_READ
kernel/locking/lockdep_proc.c:133:4: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/locking/lockdep_proc.c:133:4: error: array index in initializer not of integer type
kernel/locking/lockdep_proc.c:133:4: note: (near initialization for 'irq_strs')
>> kernel/locking/lockdep_proc.c:134:4: error: 'LOCK_CHAIN_SOFTIRQ_CONTEXT' undeclared (first use in this function); did you mean 'LOCK_CHAIN_HARDIRQ_CONTEXT'?
[LOCK_CHAIN_SOFTIRQ_CONTEXT] = "softirq",
^~~~~~~~~~~~~~~~~~~~~~~~~~
LOCK_CHAIN_HARDIRQ_CONTEXT
kernel/locking/lockdep_proc.c:134:4: error: array index in initializer not of integer type
kernel/locking/lockdep_proc.c:134:4: note: (near initialization for 'irq_strs')
kernel/locking/lockdep_proc.c:135:4: error: array index in initializer not of integer type
[LOCK_CHAIN_SOFTIRQ_CONTEXT|
^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/locking/lockdep_proc.c:135:4: note: (near initialization for 'irq_strs')
vim +133 kernel/locking/lockdep_proc.c
125
126 static int lc_show(struct seq_file *m, void *v)
127 {
128 struct lock_chain *chain = v;
129 struct lock_class *class;
130 int i;
131 static const char * const irq_strs[] = {
132 [0] = "0",
> 133 [LOCK_CHAIN_HARDIRQ_CONTEXT] = "hardirq",
> 134 [LOCK_CHAIN_SOFTIRQ_CONTEXT] = "softirq",
135 [LOCK_CHAIN_SOFTIRQ_CONTEXT|
136 LOCK_CHAIN_HARDIRQ_CONTEXT] = "hardirq|softirq",
137 };
138
139 if (v == SEQ_START_TOKEN) {
140 if (nr_chain_hlocks > MAX_LOCKDEP_CHAIN_HLOCKS)
141 seq_printf(m, "(buggered) ");
142 seq_printf(m, "all lock chains:\n");
143 return 0;
144 }
145
146 seq_printf(m, "irq_context: %s\n", irq_strs[chain->irq_context]);
147
148 for (i = 0; i < chain->depth; i++) {
149 class = lock_chain_get_class(chain, i);
150 if (!class->key)
151 continue;
152
153 seq_printf(m, "[%p] ", class->key);
154 print_name(m, class);
155 seq_puts(m, "\n");
156 }
157 seq_puts(m, "\n");
158
159 return 0;
160 }
161
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 59412 bytes --]
next prev parent reply other threads:[~2020-01-17 22:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-15 21:43 [PATCH v3 0/8] locking/lockdep: Reuse zapped chain_hlocks entries Waiman Long
2020-01-15 21:43 ` [PATCH v3 1/8] locking/lockdep: Decrement irq context counters when removing lock chain Waiman Long
2020-01-16 15:32 ` Peter Zijlstra
2020-01-16 15:50 ` Waiman Long
2020-01-17 18:14 ` kbuild test robot
2020-01-15 21:43 ` [PATCH v3 2/8] locking/lockdep: Display irq_context names in /proc/lockdep_chains Waiman Long
2020-01-17 22:12 ` kbuild test robot [this message]
2020-01-15 21:43 ` [PATCH v3 3/8] locking/lockdep: Track number of zapped classes Waiman Long
2020-01-15 21:43 ` [PATCH v3 4/8] locking/lockdep: Throw away all lock chains with zapped class Waiman Long
2020-01-15 21:43 ` [PATCH v3 5/8] locking/lockdep: Track number of zapped lock chains Waiman Long
2020-01-15 21:43 ` [PATCH v3 6/8] locking/lockdep: Reuse freed chain_hlocks entries Waiman Long
2020-01-16 21:13 ` Peter Zijlstra
2020-01-20 4:22 ` Waiman Long
2020-01-17 5:51 ` kbuild test robot
2020-01-15 21:43 ` [PATCH v3 7/8] locking/lockdep: Add lockdep_early_init() before any lock is taken Waiman Long
2020-01-15 21:43 ` [PATCH v3 8/8] locking/lockdep: Enable chain block splitting as last resort Waiman Long
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=202001180640.9i2OvpjJ%lkp@intel.com \
--to=lkp@intel.com \
--cc=bvanassche@acm.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=will.deacon@arm.com \
/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