summaryrefslogtreecommitdiff
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorakpm@osdl.org <akpm@osdl.org>2006-01-10 07:51:45 +0300
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 19:01:27 +0300
commitbf2083050d7879390ddedbd64e431cf167854a34 (patch)
tree036c435ff4dc6b5fad694b9ccd92faacd92c08a2 /include/asm-powerpc
parentf05b690248bc928b85cc19ea85a5c6268bb3acaf (diff)
downloadlinux-bf2083050d7879390ddedbd64e431cf167854a34.tar.xz
[PATCH] Kdump: powerpc and s390 build failure fix
) From: Vivek Goyal <vgoyal@in.ibm.com> crash_setup_regs() is an architecture dependent function which is called in architecture independent section. So every architecture supporting kexec should at least provide a dummy definition of crash_setup_regs() even if crash dumping is not implemented yet, to avoid build failures. Signed-off-by: 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 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/kexec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/kexec.h b/include/asm-powerpc/kexec.h
index e363752276ef..fffdf690b840 100644
--- a/include/asm-powerpc/kexec.h
+++ b/include/asm-powerpc/kexec.h
@@ -55,6 +55,12 @@ extern void default_machine_crash_shutdown(struct pt_regs *regs);
#endif /* !CONFIG_KEXEC */
+/*
+ * Provide a dummy definition to avoid build failures. Will remain
+ * empty till crash dump support is enabled.
+ */
+static inline void crash_setup_regs(struct pt_regs *newregs,
+ struct pt_regs *oldregs) { }
#endif /* ! __ASSEMBLY__ */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_KEXEC_H */