diff options
| author | Rasmus Villemoes <[email protected]> | 2018-10-26 22:20:04 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-10-29 06:19:26 +0000 |
| commit | 2022cceb4e30f1bb4c84d40ffa705aa8d8d68adb (patch) | |
| tree | 94f3d297a15bb1f6cceb3d05bf39b3a183d01bf7 /tools/perf/scripts/python/syscall-counts.py | |
| parent | x86: Clean up 'sizeof x' => 'sizeof(x)' (diff) | |
| download | kernel-2022cceb4e30f1bb4c84d40ffa705aa8d8d68adb.tar.gz kernel-2022cceb4e30f1bb4c84d40ffa705aa8d8d68adb.zip | |
x86/traps: Use format string with panic() call
Building with -Wformat-nonliteral gives:
arch/x86/kernel/traps.c:334:2: warning: format not a string literal and no format arguments [-Wformat-nonliteral]
panic(message);
handle_stack_overflow() can only be called from two places (kernel/traps.c
and via inline asm in mm/fault.c), in both cases with a string not
containing format specifiers, so we might as well silence this warning
using "%s" as a format string.
Signed-off-by: Rasmus Villemoes <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
