aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/moduleparam.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-08-12 01:04:18 -0400
committerRusty Russell <rusty@rustcorp.com.au>2010-08-11 09:34:19 -0400
commit914dcaa84c53f2c3efa6016efcae13fd92a8a17c (patch)
tree6bbcf8953012000cb0a22b47ff616ff2dbe481f2 /include/linux/moduleparam.h
parenta1054322afc8120ea5a50bc84e5beeda54571862 (diff)
param: make param sections const.
Since this section can be read-only (they're in .rodata), they should always have been const. Minor flow-through various functions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Tested-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Diffstat (limited to 'include/linux/moduleparam.h')
-rw-r--r--include/linux/moduleparam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
index 9f51568f51c8..6d48831fe7d2 100644
--- a/include/linux/moduleparam.h
+++ b/include/linux/moduleparam.h
@@ -161,7 +161,7 @@ __check_old_set_param(int (*oldset)(const char *, struct kernel_param *))
161/* Called on module insert or kernel boot */ 161/* Called on module insert or kernel boot */
162extern int parse_args(const char *name, 162extern int parse_args(const char *name,
163 char *args, 163 char *args,
164 struct kernel_param *params, 164 const struct kernel_param *params,
165 unsigned num, 165 unsigned num,
166 int (*unknown)(char *param, char *val)); 166 int (*unknown)(char *param, char *val));
167 167