diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-08-11 23:04:18 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-08-11 23:04:19 +0930 |
commit | 914dcaa84c53f2c3efa6016efcae13fd92a8a17c (patch) | |
tree | 6bbcf8953012000cb0a22b47ff616ff2dbe481f2 /kernel/params.c | |
parent | a1054322afc8120ea5a50bc84e5beeda54571862 (diff) | |
download | linux-914dcaa84c53f2c3efa6016efcae13fd92a8a17c.tar.gz linux-914dcaa84c53f2c3efa6016efcae13fd92a8a17c.tar.bz2 linux-914dcaa84c53f2c3efa6016efcae13fd92a8a17c.zip |
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/params.c')
-rw-r--r-- | kernel/params.c | 4 |
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) static int parse_one(char *param, char *val, - struct kernel_param *params, + const struct kernel_param *params, unsigned num_params, int (*handle_unknown)(char *param, char *val)) { @@ -170,7 +170,7 @@ static char *next_arg(char *args, char **param, char **val) /* Args looks like "foo=bar,bar2 baz=fuz wiz". */ int parse_args(const char *name, char *args, - struct kernel_param *params, + const struct kernel_param *params, unsigned num, int (*unknown)(char *param, char *val)) { |