1 From: Jeff Mahoney <jeffm@suse.com>
2 Subject: md: Fix section conflicts
4 Module parameters can't be static since the module macros explicitly
5 put those symbols in the __param section. It causes a section conflict
6 on ia64. This doesn't occur with standard types, since they are global
9 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
12 drivers/md/md.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
17 @@ -6414,11 +6414,11 @@ static __exit void md_exit(void)
18 subsys_initcall(md_init);
21 -static int get_ro(char *buffer, struct kernel_param *kp)
22 +int get_ro(char *buffer, struct kernel_param *kp)
24 return sprintf(buffer, "%d", start_readonly);
26 -static int set_ro(const char *val, struct kernel_param *kp)
27 +int set_ro(const char *val, struct kernel_param *kp)
30 int num = simple_strtoul(val, &e, 10);