diff options
author | Jonas Bonn <jonas@southpole.se> | 2011-06-30 15:22:12 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-24 08:36:04 -0400 |
commit | 66574cc05438dd0907029075d7e6ec5ac0036fbc (patch) | |
tree | 8516792e486a535840e09b67f0831c303df3d45d /arch/sparc | |
parent | 74e08fcf7bef973512a1f813700f802a93678670 (diff) |
modules: make arch's use default loader hooks
This patch removes all the module loader hook implementations in the
architecture specific code where the functionality is the same as that
now provided by the recently added default hooks.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/module.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/sparc/kernel/module.c b/arch/sparc/kernel/module.c index 99ba5baa9497..da0c6c70ccb2 100644 --- a/arch/sparc/kernel/module.c +++ b/arch/sparc/kernel/module.c | |||
@@ -68,12 +68,6 @@ void *module_alloc(unsigned long size) | |||
68 | return ret; | 68 | return ret; |
69 | } | 69 | } |
70 | 70 | ||
71 | /* Free memory returned from module_core_alloc/module_init_alloc */ | ||
72 | void module_free(struct module *mod, void *module_region) | ||
73 | { | ||
74 | vfree(module_region); | ||
75 | } | ||
76 | |||
77 | /* Make generic code ignore STT_REGISTER dummy undefined symbols. */ | 71 | /* Make generic code ignore STT_REGISTER dummy undefined symbols. */ |
78 | int module_frob_arch_sections(Elf_Ehdr *hdr, | 72 | int module_frob_arch_sections(Elf_Ehdr *hdr, |
79 | Elf_Shdr *sechdrs, | 73 | Elf_Shdr *sechdrs, |
@@ -107,17 +101,6 @@ int module_frob_arch_sections(Elf_Ehdr *hdr, | |||
107 | return 0; | 101 | return 0; |
108 | } | 102 | } |
109 | 103 | ||
110 | int apply_relocate(Elf_Shdr *sechdrs, | ||
111 | const char *strtab, | ||
112 | unsigned int symindex, | ||
113 | unsigned int relsec, | ||
114 | struct module *me) | ||
115 | { | ||
116 | printk(KERN_ERR "module %s: non-ADD RELOCATION unsupported\n", | ||
117 | me->name); | ||
118 | return -ENOEXEC; | ||
119 | } | ||
120 | |||
121 | int apply_relocate_add(Elf_Shdr *sechdrs, | 104 | int apply_relocate_add(Elf_Shdr *sechdrs, |
122 | const char *strtab, | 105 | const char *strtab, |
123 | unsigned int symindex, | 106 | unsigned int symindex, |
@@ -239,15 +222,4 @@ int module_finalize(const Elf_Ehdr *hdr, | |||
239 | 222 | ||
240 | return 0; | 223 | return 0; |
241 | } | 224 | } |
242 | #else | ||
243 | int module_finalize(const Elf_Ehdr *hdr, | ||
244 | const Elf_Shdr *sechdrs, | ||
245 | struct module *me) | ||
246 | { | ||
247 | return 0; | ||
248 | } | ||
249 | #endif /* CONFIG_SPARC64 */ | 225 | #endif /* CONFIG_SPARC64 */ |
250 | |||
251 | void module_arch_cleanup(struct module *mod) | ||
252 | { | ||
253 | } | ||