diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-03-06 05:24:41 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-03-07 09:26:02 -0500 |
commit | fa2a0627ac70d007c313da150d9bf3705729e9c8 (patch) | |
tree | a38fbd9b410e6f26240bae271bcfa1d43ad59504 | |
parent | 0563416b8ac2711f315b50aa6efc84b112e5420a (diff) |
s390/compat: remove compat exec domain
The whole compat exec domain code doesn't make any difference.
From the registered s390_exec_domain:
- exec domain name is only displayed in /proc/execdomains
- handler is unused
- pers_low and pers_high are only used internally to find this specific
exec domain otherwise the default exec domain will be used
- all other fields match the default exec domain
So let's get rid of this.
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/Makefile | 5 | ||||
-rw-r--r-- | arch/s390/kernel/compat_exec_domain.c | 29 |
2 files changed, 2 insertions, 32 deletions
diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile index 1b3ac09c11b6..a95c4ca99617 100644 --- a/arch/s390/kernel/Makefile +++ b/arch/s390/kernel/Makefile | |||
@@ -47,9 +47,8 @@ obj-$(CONFIG_SCHED_BOOK) += topology.o | |||
47 | obj-$(CONFIG_HIBERNATION) += suspend.o swsusp_asm64.o | 47 | obj-$(CONFIG_HIBERNATION) += suspend.o swsusp_asm64.o |
48 | obj-$(CONFIG_AUDIT) += audit.o | 48 | obj-$(CONFIG_AUDIT) += audit.o |
49 | compat-obj-$(CONFIG_AUDIT) += compat_audit.o | 49 | compat-obj-$(CONFIG_AUDIT) += compat_audit.o |
50 | obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \ | 50 | obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o |
51 | compat_wrapper.o compat_exec_domain.o \ | 51 | obj-$(CONFIG_COMPAT) += compat_wrapper.o $(compat-obj-y) |
52 | $(compat-obj-y) | ||
53 | 52 | ||
54 | obj-$(CONFIG_STACKTRACE) += stacktrace.o | 53 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
55 | obj-$(CONFIG_KPROBES) += kprobes.o | 54 | obj-$(CONFIG_KPROBES) += kprobes.o |
diff --git a/arch/s390/kernel/compat_exec_domain.c b/arch/s390/kernel/compat_exec_domain.c deleted file mode 100644 index 765fabdada9f..000000000000 --- a/arch/s390/kernel/compat_exec_domain.c +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* | ||
2 | * Support for 32-bit Linux for S390 personality. | ||
3 | * | ||
4 | * Copyright IBM Corp. 2000 | ||
5 | * Author(s): Gerhard Tonn (ton@de.ibm.com) | ||
6 | * | ||
7 | * | ||
8 | */ | ||
9 | |||
10 | #include <linux/kernel.h> | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/personality.h> | ||
13 | #include <linux/sched.h> | ||
14 | |||
15 | static struct exec_domain s390_exec_domain; | ||
16 | |||
17 | static int __init s390_init (void) | ||
18 | { | ||
19 | s390_exec_domain.name = "Linux/s390"; | ||
20 | s390_exec_domain.handler = NULL; | ||
21 | s390_exec_domain.pers_low = PER_LINUX32; | ||
22 | s390_exec_domain.pers_high = PER_LINUX32; | ||
23 | s390_exec_domain.signal_map = default_exec_domain.signal_map; | ||
24 | s390_exec_domain.signal_invmap = default_exec_domain.signal_invmap; | ||
25 | register_exec_domain(&s390_exec_domain); | ||
26 | return 0; | ||
27 | } | ||
28 | |||
29 | __initcall(s390_init); | ||