diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:11:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:15 -0400 |
commit | b9e5db6d2bbe4416cd1c30c2d1891ef39d6bd0b7 (patch) | |
tree | 60e49f54318366454ec1d35fe0b8b2b5272157cc | |
parent | a6c8c6902c53e620e607e83f520e9ae424e2a424 (diff) |
kernel/exec_domain.c: code clean-up
Fix checkpatch warnings about EXPORT_SYMBOL and return()
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/exec_domain.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/kernel/exec_domain.c b/kernel/exec_domain.c index 0dbeae374225..83d4382f5699 100644 --- a/kernel/exec_domain.c +++ b/kernel/exec_domain.c | |||
@@ -37,7 +37,7 @@ static unsigned long ident_map[32] = { | |||
37 | struct exec_domain default_exec_domain = { | 37 | struct exec_domain default_exec_domain = { |
38 | .name = "Linux", /* name */ | 38 | .name = "Linux", /* name */ |
39 | .handler = default_handler, /* lcall7 causes a seg fault. */ | 39 | .handler = default_handler, /* lcall7 causes a seg fault. */ |
40 | .pers_low = 0, /* PER_LINUX personality. */ | 40 | .pers_low = 0, /* PER_LINUX personality. */ |
41 | .pers_high = 0, /* PER_LINUX personality. */ | 41 | .pers_high = 0, /* PER_LINUX personality. */ |
42 | .signal_map = ident_map, /* Identity map signals. */ | 42 | .signal_map = ident_map, /* Identity map signals. */ |
43 | .signal_invmap = ident_map, /* - both ways. */ | 43 | .signal_invmap = ident_map, /* - both ways. */ |
@@ -83,7 +83,7 @@ lookup_exec_domain(unsigned int personality) | |||
83 | ep = &default_exec_domain; | 83 | ep = &default_exec_domain; |
84 | out: | 84 | out: |
85 | read_unlock(&exec_domains_lock); | 85 | read_unlock(&exec_domains_lock); |
86 | return (ep); | 86 | return ep; |
87 | } | 87 | } |
88 | 88 | ||
89 | int | 89 | int |
@@ -110,8 +110,9 @@ register_exec_domain(struct exec_domain *ep) | |||
110 | 110 | ||
111 | out: | 111 | out: |
112 | write_unlock(&exec_domains_lock); | 112 | write_unlock(&exec_domains_lock); |
113 | return (err); | 113 | return err; |
114 | } | 114 | } |
115 | EXPORT_SYMBOL(register_exec_domain); | ||
115 | 116 | ||
116 | int | 117 | int |
117 | unregister_exec_domain(struct exec_domain *ep) | 118 | unregister_exec_domain(struct exec_domain *ep) |
@@ -133,6 +134,7 @@ unregister: | |||
133 | write_unlock(&exec_domains_lock); | 134 | write_unlock(&exec_domains_lock); |
134 | return 0; | 135 | return 0; |
135 | } | 136 | } |
137 | EXPORT_SYMBOL(unregister_exec_domain); | ||
136 | 138 | ||
137 | int __set_personality(unsigned int personality) | 139 | int __set_personality(unsigned int personality) |
138 | { | 140 | { |
@@ -144,6 +146,7 @@ int __set_personality(unsigned int personality) | |||
144 | 146 | ||
145 | return 0; | 147 | return 0; |
146 | } | 148 | } |
149 | EXPORT_SYMBOL(__set_personality); | ||
147 | 150 | ||
148 | #ifdef CONFIG_PROC_FS | 151 | #ifdef CONFIG_PROC_FS |
149 | static int execdomains_proc_show(struct seq_file *m, void *v) | 152 | static int execdomains_proc_show(struct seq_file *m, void *v) |
@@ -188,8 +191,3 @@ SYSCALL_DEFINE1(personality, unsigned int, personality) | |||
188 | 191 | ||
189 | return old; | 192 | return old; |
190 | } | 193 | } |
191 | |||
192 | |||
193 | EXPORT_SYMBOL(register_exec_domain); | ||
194 | EXPORT_SYMBOL(unregister_exec_domain); | ||
195 | EXPORT_SYMBOL(__set_personality); | ||