From: Jeff Mahoney Subject: md: Fix section conflicts Module parameters can't be static since the module macros explicitly put those symbols in the __param section. It causes a section conflict on ia64. This doesn't occur with standard types, since they are global and exported. Signed-off-by: Jeff Mahoney --- drivers/md/md.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6412,11 +6412,11 @@ static __exit void md_exit(void) subsys_initcall(md_init); module_exit(md_exit) -static int get_ro(char *buffer, struct kernel_param *kp) +int get_ro(char *buffer, struct kernel_param *kp) { return sprintf(buffer, "%d", start_readonly); } -static int set_ro(const char *val, struct kernel_param *kp) +int set_ro(const char *val, struct kernel_param *kp) { char *e; int num = simple_strtoul(val, &e, 10);