aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
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 /kernel
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 'kernel')
-rw-r--r--kernel/params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/params.c b/kernel/params.c
index ef60db14fae0..a3eeeefc9472 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -88,7 +88,7 @@ static inline int parameq(const char *input, const char *paramname)
88 88
89static int parse_one(char *param, 89static int parse_one(char *param,
90 char *val, 90 char *val,
91 struct kernel_param *params, 91 const struct kernel_param *params,
92 unsigned num_params, 92 unsigned num_params,
93 int (*handle_unknown)(char *param, char *val)) 93 int (*handle_unknown)(char *param, char *val))
94{ 94{
@@ -170,7 +170,7 @@ static char *next_arg(char *args, char **param, char **val)
170/* Args looks like "foo=bar,bar2 baz=fuz wiz". */ 170/* Args looks like "foo=bar,bar2 baz=fuz wiz". */
171int parse_args(const char *name, 171int parse_args(const char *name,
172 char *args, 172 char *args,
173 struct kernel_param *params, 173 const struct kernel_param *params,
174 unsigned num, 174 unsigned num,
175 int (*unknown)(char *param, char *val)) 175 int (*unknown)(char *param, char *val))
176{ 176{