From 5d6f808c6468082b20f899114ef023fdaeb44615 Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Thu, 15 Mar 2007 17:56:46 +0900 Subject: Kdump is not supported on ppc, s390, sh Kdump is not supported on ppc, s390, sh So let's return that no crash kernel memory is found. Signed-off-by: Magnus Damm Signed-off-by: Simon Horman --- kexec/arch/ppc/kexec-ppc.c | 6 +----- kexec/arch/s390/kexec-s390.c | 6 +----- kexec/arch/sh/kexec-sh.c | 5 +---- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/kexec/arch/ppc/kexec-ppc.c b/kexec/arch/ppc/kexec-ppc.c index fe8a5a4..e446674 100644 --- a/kexec/arch/ppc/kexec-ppc.c +++ b/kexec/arch/ppc/kexec-ppc.c @@ -144,11 +144,7 @@ void arch_update_purgatory(struct kexec_info *info) { } -/* - * Adding a dummy function, so that build on PPC will not break. - * Need to implement the actual checking code - */ int is_crashkernel_mem_reserved(void) { - return 1; + return 0; /* kdump is not supported on this platform (yet) */ } diff --git a/kexec/arch/s390/kexec-s390.c b/kexec/arch/s390/kexec-s390.c index a7ef71c..1a1af5d 100644 --- a/kexec/arch/s390/kexec-s390.c +++ b/kexec/arch/s390/kexec-s390.c @@ -104,11 +104,7 @@ void arch_update_purgatory(struct kexec_info *info) { } -/* - * Adding a dummy function, so that build on s390 will not break. - * Need to implement the actual checking code - */ int is_crashkernel_mem_reserved(void) { - return 1; + return 0; /* kdump is not supported on this platform (yet) */ } diff --git a/kexec/arch/sh/kexec-sh.c b/kexec/arch/sh/kexec-sh.c index 491ade1..07a88e8 100644 --- a/kexec/arch/sh/kexec-sh.c +++ b/kexec/arch/sh/kexec-sh.c @@ -170,9 +170,6 @@ char *get_append(void) int is_crashkernel_mem_reserved(void) { - uint64_t start, end; - - return parse_iomem_single("Crash kernel\n", &start, &end) == 0 ? - (start != end) : 0; + return 0; /* kdump is not supported on this platform (yet) */ } -- cgit