Commit b9e5db6d authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

kernel/exec_domain.c: code clean-up

Fix checkpatch warnings about EXPORT_SYMBOL and return()
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a6c8c690
...@@ -83,7 +83,7 @@ lookup_exec_domain(unsigned int personality) ...@@ -83,7 +83,7 @@ lookup_exec_domain(unsigned int personality)
ep = &default_exec_domain; ep = &default_exec_domain;
out: out:
read_unlock(&exec_domains_lock); read_unlock(&exec_domains_lock);
return (ep); return ep;
} }
int int
...@@ -110,8 +110,9 @@ register_exec_domain(struct exec_domain *ep) ...@@ -110,8 +110,9 @@ register_exec_domain(struct exec_domain *ep)
out: out:
write_unlock(&exec_domains_lock); write_unlock(&exec_domains_lock);
return (err); return err;
} }
EXPORT_SYMBOL(register_exec_domain);
int int
unregister_exec_domain(struct exec_domain *ep) unregister_exec_domain(struct exec_domain *ep)
...@@ -133,6 +134,7 @@ unregister_exec_domain(struct exec_domain *ep) ...@@ -133,6 +134,7 @@ unregister_exec_domain(struct exec_domain *ep)
write_unlock(&exec_domains_lock); write_unlock(&exec_domains_lock);
return 0; return 0;
} }
EXPORT_SYMBOL(unregister_exec_domain);
int __set_personality(unsigned int personality) int __set_personality(unsigned int personality)
{ {
...@@ -144,6 +146,7 @@ int __set_personality(unsigned int personality) ...@@ -144,6 +146,7 @@ int __set_personality(unsigned int personality)
return 0; return 0;
} }
EXPORT_SYMBOL(__set_personality);
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
static int execdomains_proc_show(struct seq_file *m, void *v) static int execdomains_proc_show(struct seq_file *m, void *v)
...@@ -188,8 +191,3 @@ SYSCALL_DEFINE1(personality, unsigned int, personality) ...@@ -188,8 +191,3 @@ SYSCALL_DEFINE1(personality, unsigned int, personality)
return old; return old;
} }
EXPORT_SYMBOL(register_exec_domain);
EXPORT_SYMBOL(unregister_exec_domain);
EXPORT_SYMBOL(__set_personality);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment