summaryrefslogtreecommitdiff
path: root/include/linux/moduleloader.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2003-01-05 16:51:33 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-05 16:51:33 -0800
commit18f50759ad60959193f5e06201e0f96cf7d94da2 (patch)
tree2e79012ecd23172a497464e4861007f5bd557db8 /include/linux/moduleloader.h
parent1086892d9abb6e14e003bd7b7fd3a971f723d6b2 (diff)
[PATCH] "constfrobbing considered harmful"
The declaration of `module_frob_arch_sections' in moduleloader.h (and the definitions in most of the module.c files) are inconsistent with the definition in the PPC's module.c -- in the latter the first two arguments are not declared `const', whereas everyplace else they are. PS. secstrings can be modded to: if an arch can't handle discarding init, it simply renames the .init sections.
Diffstat (limited to 'include/linux/moduleloader.h')
-rw-r--r--include/linux/moduleloader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/moduleloader.h b/include/linux/moduleloader.h
index 5001ff39204d..991e9cdf3213 100644
--- a/include/linux/moduleloader.h
+++ b/include/linux/moduleloader.h
@@ -16,9 +16,9 @@ unsigned long find_symbol_internal(Elf_Shdr *sechdrs,
/* These must be implemented by the specific architecture */
/* Adjust arch-specific sections. Return 0 on success. */
-int module_frob_arch_sections(const Elf_Ehdr *hdr,
- const Elf_Shdr *sechdrs,
- const char *secstrings,
+int module_frob_arch_sections(Elf_Ehdr *hdr,
+ Elf_Shdr *sechdrs,
+ char *secstrings,
struct module *mod);
/* Allocator used for allocating struct module, core sections and init