mirror of https://gitee.com/openkylin/linux.git
kexec: vmcoreinfo_data[] can become static
The vmcoreinfo_data[] array is not used outside of kernel/kexec.c, and can therefore become static. This patch adds the relevant keyword to the definition of the array. Noticed by sparse. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
04d491ab2a
commit
edb79a2132
|
@ -42,7 +42,7 @@
|
|||
note_buf_t* crash_notes;
|
||||
|
||||
/* vmcoreinfo stuff */
|
||||
unsigned char vmcoreinfo_data[VMCOREINFO_BYTES];
|
||||
static unsigned char vmcoreinfo_data[VMCOREINFO_BYTES];
|
||||
u32 vmcoreinfo_note[VMCOREINFO_NOTE_SIZE/4];
|
||||
size_t vmcoreinfo_size;
|
||||
size_t vmcoreinfo_max_size = sizeof(vmcoreinfo_data);
|
||||
|
|
Loading…
Reference in New Issue