diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-08-07 04:55:03 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-07 04:55:03 -0400 |
commit | 4fb8af10d0fd09372d52966b76922b9e82bbc950 (patch) | |
tree | d240e4d40357583e3f3eb228dccf20122a5b31ed /arch/sh/kernel/module.c | |
parent | f44f82e8a20b98558486eb14497b2f71c78fa325 (diff) | |
parent | 64a99d2a8c3ed5c4e39f3ae1cc682aa8fd3977fc (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
Diffstat (limited to 'arch/sh/kernel/module.c')
-rw-r--r-- | arch/sh/kernel/module.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 5482e65375a9..c43081039dd5 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/moduleloader.h> | 27 | #include <linux/moduleloader.h> |
28 | #include <linux/elf.h> | 28 | #include <linux/elf.h> |
29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
30 | #include <linux/bug.h> | ||
30 | #include <linux/fs.h> | 31 | #include <linux/fs.h> |
31 | #include <linux/string.h> | 32 | #include <linux/string.h> |
32 | #include <linux/kernel.h> | 33 | #include <linux/kernel.h> |
@@ -36,7 +37,8 @@ void *module_alloc(unsigned long size) | |||
36 | { | 37 | { |
37 | if (size == 0) | 38 | if (size == 0) |
38 | return NULL; | 39 | return NULL; |
39 | return vmalloc(size); | 40 | |
41 | return vmalloc_exec(size); | ||
40 | } | 42 | } |
41 | 43 | ||
42 | 44 | ||
@@ -145,9 +147,10 @@ int module_finalize(const Elf_Ehdr *hdr, | |||
145 | const Elf_Shdr *sechdrs, | 147 | const Elf_Shdr *sechdrs, |
146 | struct module *me) | 148 | struct module *me) |
147 | { | 149 | { |
148 | return 0; | 150 | return module_bug_finalize(hdr, sechdrs, me); |
149 | } | 151 | } |
150 | 152 | ||
151 | void module_arch_cleanup(struct module *mod) | 153 | void module_arch_cleanup(struct module *mod) |
152 | { | 154 | { |
155 | module_bug_cleanup(mod); | ||
153 | } | 156 | } |