Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

akpm@osdl.org and committed by
Linus Torvalds
bf208305 f05b6902

+10
+6
include/asm-powerpc/kexec.h
··· 55 55 56 56 #endif /* !CONFIG_KEXEC */ 57 57 58 + /* 59 + * Provide a dummy definition to avoid build failures. Will remain 60 + * empty till crash dump support is enabled. 61 + */ 62 + static inline void crash_setup_regs(struct pt_regs *newregs, 63 + struct pt_regs *oldregs) { } 58 64 #endif /* ! __ASSEMBLY__ */ 59 65 #endif /* __KERNEL__ */ 60 66 #endif /* _ASM_POWERPC_KEXEC_H */
+4
include/asm-s390/kexec.h
··· 36 36 37 37 #define MAX_NOTE_BYTES 1024 38 38 39 + /* Provide a dummy definition to avoid build failures. */ 40 + static inline void crash_setup_regs(struct pt_regs *newregs, 41 + struct pt_regs *oldregs) { } 42 + 39 43 #endif /*_S390_KEXEC_H */