kernel/ksysfs.c: In function `crash_notes_show': kernel/ksysfs.c:38: error: `crash_notes' undeclared (first use in this function) kernel/ksysfs.c:38: error: (Each undeclared identifier is reported only once kernel/ksysfs.c:38: error: for each function it appears in.) Signed-off-by: Andrew Morton --- arch/x86_64/kernel/crash.c | 3 --- include/asm-x86_64/kexec.h | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff -puN include/asm-x86_64/kexec.h~kdump-export-crash-notes-section-address-through-x86_64-fix include/asm-x86_64/kexec.h --- 25/include/asm-x86_64/kexec.h~kdump-export-crash-notes-section-address-through-x86_64-fix 2005-04-26 01:24:54.842850888 -0700 +++ 25-akpm/include/asm-x86_64/kexec.h 2005-04-26 01:24:54.846850280 -0700 @@ -25,4 +25,9 @@ /* The native architecture */ #define KEXEC_ARCH KEXEC_ARCH_X86_64 +#define MAX_NOTE_BYTES 1024 +typedef u32 note_buf_t[MAX_NOTE_BYTES/4]; + +extern note_buf_t crash_notes[]; + #endif /* _X86_64_KEXEC_H */ diff -puN arch/x86_64/kernel/crash.c~kdump-export-crash-notes-section-address-through-x86_64-fix arch/x86_64/kernel/crash.c --- 25/arch/x86_64/kernel/crash.c~kdump-export-crash-notes-section-address-through-x86_64-fix 2005-04-26 01:24:54.843850736 -0700 +++ 25-akpm/arch/x86_64/kernel/crash.c 2005-04-26 01:24:54.847850128 -0700 @@ -20,9 +20,6 @@ #include #include -#define MAX_NOTE_BYTES 1024 -typedef u32 note_buf_t[MAX_NOTE_BYTES/4]; - note_buf_t crash_notes[NR_CPUS]; void machine_crash_shutdown(void) _