Hi,

Signed-off-by: Albert Herranz
<[EMAIL PROTECTED]>

The following patch prevents the crash dump helper
code  found within kexec from breaking ppc which still
lacks crash dump functionality.

As discussed in [1], 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.

Cheers,
Albert

[1]
http://lists.osdl.org/mailman/htdig/fastboot/2005-April/001324.html




                
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
--- a/include/asm-ppc/kexec.h	2005-07-09 00:44:31.000000000 +0200
+++ b/include/asm-ppc/kexec.h	2005-07-09 03:17:20.000000000 +0200
@@ -27,6 +27,8 @@
 
 #ifndef __ASSEMBLY__
 
+extern void *crash_notes;
+
 struct kimage;
 
 extern void machine_kexec_simple(struct kimage *image);
--- a/arch/ppc/kernel/machine_kexec.c	2005-07-09 00:44:25.000000000 +0200
+++ b/arch/ppc/kernel/machine_kexec.c	2005-07-09 03:45:18.000000000 +0200
@@ -28,6 +28,12 @@ typedef NORET_TYPE void (*relocate_new_k
 const extern unsigned char relocate_new_kernel[];
 const extern unsigned int relocate_new_kernel_size;
 
+/*
+ * Provide a dummy crash_notes definition while crash dump arrives to ppc.
+ * This prevents breakage of crash_notes attribute in kernel/ksysfs.c.
+ */
+void *crash_notes = NULL;
+
 void machine_shutdown(void)
 {
 	if (ppc_md.machine_shutdown)

Reply via email to