]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.kernel.org/md-section-conflict
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.kernel.org / md-section-conflict
1 From: Jeff Mahoney <jeffm@suse.com>
2 Subject: md: Fix section conflicts
3
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
7 and exported.
8
9 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
10 ---
11
12 drivers/md/md.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 --- a/drivers/md/md.c
16 +++ b/drivers/md/md.c
17 @@ -6414,11 +6414,11 @@ static __exit void md_exit(void)
18 subsys_initcall(md_init);
19 module_exit(md_exit)
20
21 -static int get_ro(char *buffer, struct kernel_param *kp)
22 +int get_ro(char *buffer, struct kernel_param *kp)
23 {
24 return sprintf(buffer, "%d", start_readonly);
25 }
26 -static int set_ro(const char *val, struct kernel_param *kp)
27 +int set_ro(const char *val, struct kernel_param *kp)
28 {
29 char *e;
30 int num = simple_strtoul(val, &e, 10);