diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2009-03-26 10:24:46 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:28 -0400 |
commit | 59f2e69d0f95bc00353628ef33fd534fbb8e3597 (patch) | |
tree | db7db7b66273939975c93cc4563d3f86e176e28c /arch/s390 | |
parent | 159d1ff8f6c38086ed75f8e892790d0a4f3a6b71 (diff) |
[S390] zfcpdump: Prevent zcore from beeing built as a kernel module.
The zcore code switches to real addressing mode when creating a kernel dump.
This is not possible, if it is built as a kernel module. With this patch
zcore (zfcpdump) can't be built as a kernel module any more.
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/Kconfig | 2 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/s390/kernel/smp.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 0a9463bea758..2a8af5e16345 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -545,7 +545,7 @@ config KEXEC | |||
545 | but is independent of hardware/microcode support. | 545 | but is independent of hardware/microcode support. |
546 | 546 | ||
547 | config ZFCPDUMP | 547 | config ZFCPDUMP |
548 | tristate "zfcpdump support" | 548 | bool "zfcpdump support" |
549 | select SMP | 549 | select SMP |
550 | default n | 550 | default n |
551 | help | 551 | help |
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 91551ef1d67e..46fc981e02ba 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -226,7 +226,7 @@ static void __init conmode_default(void) | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | 228 | ||
229 | #if defined(CONFIG_ZFCPDUMP) || defined(CONFIG_ZFCPDUMP_MODULE) | 229 | #ifdef CONFIG_ZFCPDUMP |
230 | static void __init setup_zfcpdump(unsigned int console_devno) | 230 | static void __init setup_zfcpdump(unsigned int console_devno) |
231 | { | 231 | { |
232 | static char str[41]; | 232 | static char str[41]; |
@@ -515,7 +515,7 @@ static void __init setup_memory_end(void) | |||
515 | unsigned long max_mem; | 515 | unsigned long max_mem; |
516 | int i; | 516 | int i; |
517 | 517 | ||
518 | #if defined(CONFIG_ZFCPDUMP) || defined(CONFIG_ZFCPDUMP_MODULE) | 518 | #ifdef CONFIG_ZFCPDUMP |
519 | if (ipl_info.type == IPL_TYPE_FCP_DUMP) { | 519 | if (ipl_info.type == IPL_TYPE_FCP_DUMP) { |
520 | memory_end = ZFCPDUMP_HSA_SIZE; | 520 | memory_end = ZFCPDUMP_HSA_SIZE; |
521 | memory_end_set = 1; | 521 | memory_end_set = 1; |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 775885772ff1..bb3d34aa7b85 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -226,7 +226,7 @@ EXPORT_SYMBOL(smp_ctl_clear_bit); | |||
226 | */ | 226 | */ |
227 | #define CPU_INIT_NO 1 | 227 | #define CPU_INIT_NO 1 |
228 | 228 | ||
229 | #if defined(CONFIG_ZFCPDUMP) || defined(CONFIG_ZFCPDUMP_MODULE) | 229 | #ifdef CONFIG_ZFCPDUMP |
230 | 230 | ||
231 | /* | 231 | /* |
232 | * zfcpdump_prefix_array holds prefix registers for the following scenario: | 232 | * zfcpdump_prefix_array holds prefix registers for the following scenario: |
@@ -267,7 +267,7 @@ EXPORT_SYMBOL_GPL(zfcpdump_save_areas); | |||
267 | 267 | ||
268 | static inline void smp_get_save_area(unsigned int cpu, unsigned int phy_cpu) { } | 268 | static inline void smp_get_save_area(unsigned int cpu, unsigned int phy_cpu) { } |
269 | 269 | ||
270 | #endif /* CONFIG_ZFCPDUMP || CONFIG_ZFCPDUMP_MODULE */ | 270 | #endif /* CONFIG_ZFCPDUMP */ |
271 | 271 | ||
272 | static int cpu_stopped(int cpu) | 272 | static int cpu_stopped(int cpu) |
273 | { | 273 | { |