[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007252008.iFEIgil5%lkp@intel.com>
Date: Sat, 25 Jul 2020 20:21:26 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
x86@...nel.org, Ingo Molnar <mingo@...nel.org>
Subject: [tip:WIP.x86/entry 3/3] include/linux/irqflags.h:40:41: error:
expected expression before ')' token
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/entry
head: 6ea7527a81333198dfb204c95e57e1891c61bfcd
commit: 6ea7527a81333198dfb204c95e57e1891c61bfcd [3/3] Merge branch 'locking/nmi' into x86/entry
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 6ea7527a81333198dfb204c95e57e1891c61bfcd
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
arch/x86/entry/common.c:184:24: warning: no previous prototype for 'do_SYSENTER_32' [-Wmissing-prototypes]
184 | __visible noinstr long do_SYSENTER_32(struct pt_regs *regs)
| ^~~~~~~~~~~~~~
In file included from include/linux/rcupdate.h:26,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/x86/entry/common.c:11:
arch/x86/entry/common.c: In function 'idtentry_enter_nmi':
>> include/linux/irqflags.h:40:41: error: expected expression before ')' token
40 | # define lockdep_hardirqs_enabled(p) ((p)->hardirqs_enabled)
| ^
arch/x86/entry/common.c:203:19: note: in expansion of macro 'lockdep_hardirqs_enabled'
203 | bool irq_state = lockdep_hardirqs_enabled();
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c: At top level:
arch/x86/entry/common.c:281:24: warning: no previous prototype for 'xen_pv_evtchn_do_upcall' [-Wmissing-prototypes]
281 | __visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +40 include/linux/irqflags.h
c3bc8fd637a962 Joel Fernandes (Google 2018-07-30 32)
c3bc8fd637a962 Joel Fernandes (Google 2018-07-30 33) #ifdef CONFIG_TRACE_IRQFLAGS
0995a5dfbe49ba Thomas Gleixner 2020-03-04 34 extern void trace_hardirqs_on_prepare(void);
bf2b3008440072 Peter Zijlstra 2020-05-29 35 extern void trace_hardirqs_off_finish(void);
81d68a96a39844 Steven Rostedt 2008-05-12 36 extern void trace_hardirqs_on(void);
81d68a96a39844 Steven Rostedt 2008-05-12 37 extern void trace_hardirqs_off(void);
ef996916e78e03 Peter Zijlstra 2020-03-20 38 # define lockdep_hardirq_context(p) ((p)->hardirq_context)
ef996916e78e03 Peter Zijlstra 2020-03-20 39 # define lockdep_softirq_context(p) ((p)->softirq_context)
ef996916e78e03 Peter Zijlstra 2020-03-20 @40 # define lockdep_hardirqs_enabled(p) ((p)->hardirqs_enabled)
ef996916e78e03 Peter Zijlstra 2020-03-20 41 # define lockdep_softirqs_enabled(p) ((p)->softirqs_enabled)
2502ec37a7b228 Thomas Gleixner 2020-03-20 42 # define lockdep_hardirq_enter() \
b09be676e0ff25 Byungchul Park 2017-08-07 43 do { \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 44 if (!current->hardirq_context++) \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 45 current->hardirq_threaded = 0; \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 46 } while (0)
d5f744f9a2ac9c Linus Torvalds 2020-03-30 47 # define lockdep_hardirq_threaded() \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 48 do { \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 49 current->hardirq_threaded = 1; \
b09be676e0ff25 Byungchul Park 2017-08-07 50 } while (0)
2502ec37a7b228 Thomas Gleixner 2020-03-20 51 # define lockdep_hardirq_exit() \
b09be676e0ff25 Byungchul Park 2017-08-07 52 do { \
b09be676e0ff25 Byungchul Park 2017-08-07 53 current->hardirq_context--; \
b09be676e0ff25 Byungchul Park 2017-08-07 54 } while (0)
b09be676e0ff25 Byungchul Park 2017-08-07 55 # define lockdep_softirq_enter() \
b09be676e0ff25 Byungchul Park 2017-08-07 56 do { \
b09be676e0ff25 Byungchul Park 2017-08-07 57 current->softirq_context++; \
b09be676e0ff25 Byungchul Park 2017-08-07 58 } while (0)
b09be676e0ff25 Byungchul Park 2017-08-07 59 # define lockdep_softirq_exit() \
b09be676e0ff25 Byungchul Park 2017-08-07 60 do { \
b09be676e0ff25 Byungchul Park 2017-08-07 61 current->softirq_context--; \
b09be676e0ff25 Byungchul Park 2017-08-07 62 } while (0)
40db173965c05a Sebastian Andrzej Siewior 2020-03-21 63
:::::: The code at line 40 was first introduced by commit
:::::: ef996916e78e03d25e56c2d372e5e21fdb471882 lockdep: Rename trace_{hard,soft}{irq_context,irqs_enabled}()
:::::: TO: Peter Zijlstra <peterz@...radead.org>
:::::: CC: Thomas Gleixner <tglx@...utronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (50024 bytes)
Powered by blists - more mailing lists