summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2019-06-10 17:22:38 +0200
committerHeiko Carstens <heiko.carstens@de.ibm.com>2019-06-11 09:48:39 +0200
commit2980ba6ae8ca558ff06155f17cf7139256e7d9ac (patch)
tree8af1d97db968a008e8bc5ee3718bf2b86df526bd /arch/s390
parenteec0a43ddd3667bec3d1dfccb75df69ba6fce331 (diff)
downloadlinux-stable-2980ba6ae8ca558ff06155f17cf7139256e7d9ac.tar.gz
linux-stable-2980ba6ae8ca558ff06155f17cf7139256e7d9ac.tar.bz2
linux-stable-2980ba6ae8ca558ff06155f17cf7139256e7d9ac.zip
s390/kdump: get rid of compile warning
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>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/machine_kexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/machine_kexec.c b/arch/s390/kernel/machine_kexec.c
index 8a1ae140c5e2..444a19125a81 100644
--- a/arch/s390/kernel/machine_kexec.c
+++ b/arch/s390/kernel/machine_kexec.c
@@ -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"
*/