summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kexec/arch/ppc/kexec-ppc.c6
-rw-r--r--kexec/arch/s390/kexec-s390.c6
-rw-r--r--kexec/arch/sh/kexec-sh.c5
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) */
}