aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorVasily Gorbik <[email protected]>2020-10-09 14:25:23 +0200
committerArnaldo Carvalho de Melo <[email protected]>2020-10-13 16:07:24 -0300
commit6cf4ecf5c51d735433b3348ad055187536b1b4b6 (patch)
treef163569c6018f1132728b56dee1b4c007278489e /scripts/gdb/linux/tasks.py
parentf3013f7ed465479e60c1ab1921a5718fc541cc3b (diff)
perf build: Allow nested externs to enable BUILD_BUG() usage
Currently BUILD_BUG() macro is expanded to smth like the following: do { extern void __compiletime_assert_0(void) __attribute__((error("BUILD_BUG failed"))); if (!(!(1))) __compiletime_assert_0(); } while (0); If used in a function body this obviously would produce build errors with -Wnested-externs and -Werror. To enable BUILD_BUG() usage in tools/arch/x86/lib/insn.c which perf includes in intel-pt-decoder, build perf without -Wnested-externs. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]> Acked-by: Jiri Olsa <[email protected]> Tested-by: Stephen Rothwell <[email protected]> # build tested Cc: Alexander Shishkin <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lore.kernel.org/lkml/patch-1.thread-251403.git-2514037e9477.your-ad-here.call-01602244460-ext-7088@work.hours Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions