[PATCH] Kdump is not supported on ppc, s390, sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Kdump is not supported on ppc, s390, sh

So let's return that no crash kernel memory is found.

Signed-off-by: Magnus Damm <magnus@xxxxxxxxxxxxx>
---

 Applies to kexec-tools-testing d6c231c6f341d839fbfb09ea0814dd9a5ccdb005.

 ppc/kexec-ppc.c   |    6 +-----
 s390/kexec-s390.c |    6 +-----
 sh/kexec-sh.c     |    5 +----
 3 files changed, 3 insertions(+), 14 deletions(-)

--- 0001/kexec/arch/ppc/kexec-ppc.c
+++ work/kexec/arch/ppc/kexec-ppc.c	2007-03-09 18:22:45.000000000 +0900
@@ -144,11 +144,7 @@ void arch_update_purgatory(struct kexec_
 {
 }
 
-/*
- * 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) */
 }
--- 0001/kexec/arch/s390/kexec-s390.c
+++ work/kexec/arch/s390/kexec-s390.c	2007-03-09 18:23:12.000000000 +0900
@@ -104,11 +104,7 @@ void arch_update_purgatory(struct kexec_
 {
 }
 
-/*
- * 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) */
 }
--- 0001/kexec/arch/sh/kexec-sh.c
+++ work/kexec/arch/sh/kexec-sh.c	2007-03-09 18:22:55.000000000 +0900
@@ -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) */
 }
 
_______________________________________________
fastboot mailing list
fastboot@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/fastboot


[Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Linux Media]     [Linux Resources]

Powered by Linux