diff options
author | Albert Herranz <albert_herranz@yahoo.es> | 2005-07-12 16:58:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 19:01:03 -0400 |
commit | bc75a24582f60a70e2b95fda94ff66f577b7a0db (patch) | |
tree | 2b3354c2fb7487a0b9bff53c919e5bd693195b6b /arch/ppc/kernel/machine_kexec.c | |
parent | 41e2e8bec2da8d680a03aa4bee9a09fac499c05f (diff) |
[PATCH] kexec-ppc: fix for ksysfs crash_notes
The following patch prevents the crash dump helper code found within kexec
from breaking ppc which still lacks crash dump functionality.
ksysfs crash_notes attribute handling was left under CONFIG_KEXEC for
simplicity although it is not strictly kexec related.
We provide here a dummy definition for crash_notes on ppc.
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc/kernel/machine_kexec.c')
-rw-r--r-- | arch/ppc/kernel/machine_kexec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/ppc/kernel/machine_kexec.c b/arch/ppc/kernel/machine_kexec.c index 84d65a87191e..a72787747df7 100644 --- a/arch/ppc/kernel/machine_kexec.c +++ b/arch/ppc/kernel/machine_kexec.c | |||
@@ -28,6 +28,12 @@ typedef NORET_TYPE void (*relocate_new_kernel_t)( | |||
28 | const extern unsigned char relocate_new_kernel[]; | 28 | const extern unsigned char relocate_new_kernel[]; |
29 | const extern unsigned int relocate_new_kernel_size; | 29 | const extern unsigned int relocate_new_kernel_size; |
30 | 30 | ||
31 | /* | ||
32 | * Provide a dummy crash_notes definition while crash dump arrives to ppc. | ||
33 | * This prevents breakage of crash_notes attribute in kernel/ksysfs.c. | ||
34 | */ | ||
35 | void *crash_notes = NULL; | ||
36 | |||
31 | void machine_shutdown(void) | 37 | void machine_shutdown(void) |
32 | { | 38 | { |
33 | if (ppc_md.machine_shutdown) | 39 | if (ppc_md.machine_shutdown) |