From: kbuild test robot <fengguang.wu@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com
Subject: [tip:core/urgent 2/3] kernel/watchdog_hld.c:232:11: error: 'dead_event_ev' undeclared
Date: Thu, 2 Nov 2017 04:12:55 +0800 [thread overview]
Message-ID: <201711020452.dt1PDK2H%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3305 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/urgent
head: c7254c8aabe3025770fdb6f2d84aded11716ca2b
commit: 1c294733b7b9f712f78d15cfa75ffdea72b79abb [2/3] watchdog/harclockup/perf: Revert a33d44843d45 ("watchdog/hardlockup/perf: Simplify deferred event destroy")
config: x86_64-randconfig-x018-201744 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 1c294733b7b9f712f78d15cfa75ffdea72b79abb
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/percpu.h:6:0,
from arch/x86/include/asm/percpu.h:542,
from arch/x86/include/asm/current.h:5,
from include/linux/sched.h:11,
from include/linux/nmi.h:7,
from kernel/watchdog_hld.c:14:
kernel/watchdog_hld.c: In function 'hardlockup_detector_perf_cleanup':
>> kernel/watchdog_hld.c:232:11: error: 'dead_event_ev' undeclared (first use in this function)
per_cpu(dead_event_ev, cpu) = NULL;
^
include/linux/percpu-defs.h:206:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
>> kernel/watchdog_hld.c:232:3: note: in expansion of macro 'per_cpu'
per_cpu(dead_event_ev, cpu) = NULL;
^~~~~~~
kernel/watchdog_hld.c:232:11: note: each undeclared identifier is reported only once for each function it appears in
per_cpu(dead_event_ev, cpu) = NULL;
^
include/linux/percpu-defs.h:206:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:256:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
>> kernel/watchdog_hld.c:232:3: note: in expansion of macro 'per_cpu'
per_cpu(dead_event_ev, cpu) = NULL;
^~~~~~~
vim +/dead_event_ev +232 kernel/watchdog_hld.c
213
214 /**
215 * hardlockup_detector_perf_cleanup - Cleanup disabled events and destroy them
216 *
217 * Called from lockup_detector_cleanup(). Serialized by the caller.
218 */
219 void hardlockup_detector_perf_cleanup(void)
220 {
221 int cpu;
222
223 for_each_cpu(cpu, &dead_events_mask) {
224 struct perf_event *event = per_cpu(dead_event, cpu);
225
226 /*
227 * Required because for_each_cpu() reports unconditionally
228 * CPU0 as set on UP kernels. Sigh.
229 */
230 if (event)
231 perf_event_release_kernel(event);
> 232 per_cpu(dead_event_ev, cpu) = NULL;
233 }
234 cpumask_clear(&dead_events_mask);
235 }
236
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31066 bytes --]
reply other threads:[~2017-11-01 20:13 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=201711020452.dt1PDK2H%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=tipbuild@zytor.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 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.