kernel/kexec.c: make kexec_crash_image static
PATCH 1/1 kernel/kexec.c: make kexec_crash_image static
This patch makes a needlessly global struct static.
Signed-off-by Adrian Bunk <[email protected]>
---
include/linux/kexec.h | 1 - kernel/kexec.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
include/linux/kexec.h renamed from include/linux/kexec.h.old +0 -1
@@ -101,7 +101,6 @@extern struct page *kimage_alloc_control_pages (struct kimage *image,unsigned int order);extern void crash_kexec (void );extern struct kimage *kexec_image; -extern struct kimage *kexec_crash_image;#define KEXEC_ON_CRASH 0x00000001#define KEXEC_ARCH_MASK 0xffff0000
kernel/kexec.c renamed from kernel/kexec.c.old +1 -1
@@ -868,7 +868,7 @@* that to happen you need to do that yourself. */ struct kimage *kexec_image =NULL ; -struct kimage *kexec_crash_image =NULL ; +static struct kimage *kexec_crash_image =NULL ;/* * A home grown binary mutex. * Nothing can wait so this mutex is safe to use