]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
s390/kdump: get rid of compile warning
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 10 Jun 2019 15:22:38 +0000 (17:22 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 11 Jun 2019 07:48:39 +0000 (09:48 +0200)
Move the CONFIG_CRASH_DUMP ifdef to get rid of this:

arch/s390/kernel/machine_kexec.c:146:22: warning: 'do_start_kdump' defined but not used [-Wunused-function]

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/kernel/machine_kexec.c

index 8a1ae140c5e2c420ef8ea1f53ab485d2edf1f86e..444a19125a815c4578a60cb5e5284b7706717627 100644 (file)
@@ -141,7 +141,6 @@ static noinline void __machine_kdump(void *image)
         */
        store_status(__do_machine_kdump, image);
 }
-#endif
 
 static unsigned long do_start_kdump(unsigned long addr)
 {
@@ -155,6 +154,8 @@ static unsigned long do_start_kdump(unsigned long addr)
        return rc;
 }
 
+#endif /* CONFIG_CRASH_DUMP */
+
 /*
  * Check if kdump checksums are valid: We call purgatory with parameter "0"
  */