diff options
author | Tiezhu Yang <[email protected]> | 2019-06-24 12:41:18 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-06-26 16:02:45 +0200 |
commit | 53b7607382b0b99d6ae1ef5b1b0fa042b00ac7f4 (patch) | |
tree | f003a89fb3967105fd09dc5455a180b47e78007c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 166da5c5462f4cf299e0daa47c7384617c1699d7 (diff) |
x86/kexec: Make variable static and config dependent
The following sparse warning is emitted:
arch/x86/kernel/crash.c:59:15:
warning: symbol 'crash_zero_bytes' was not declared. Should it be static?
The variable is only used in this compilation unit, but it is also only
used when CONFIG_KEXEC_FILE is enabled. Just making it static would result
in a 'defined but not used' warning for CONFIG_KEXEC_FILE=n.
Make it static and move it into the existing CONFIG_KEXEC_FILE section.
[ tglx: Massaged changelog and moved it into the existing ifdef ]
Fixes: dd5f726076cc ("kexec: support for kexec on panic using new system call")
Signed-off-by: Tiezhu Yang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Dave Young <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Vivek Goyal <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions