diff options
| -rw-r--r-- | arch/ppc/kernel/machine_kexec.c | 6 | ||||
| -rw-r--r-- | include/asm-ppc/kexec.h | 2 |
2 files changed, 8 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) |
diff --git a/include/asm-ppc/kexec.h b/include/asm-ppc/kexec.h index 73191310d8db..6d2aa0aa4642 100644 --- a/include/asm-ppc/kexec.h +++ b/include/asm-ppc/kexec.h | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
| 29 | 29 | ||
| 30 | extern void *crash_notes; | ||
| 31 | |||
| 30 | struct kimage; | 32 | struct kimage; |
| 31 | 33 | ||
| 32 | extern void machine_kexec_simple(struct kimage *image); | 34 | extern void machine_kexec_simple(struct kimage *image); |
