diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-08-12 09:04:18 +0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-08-11 17:34:19 +0400 |
commit | 914dcaa84c53f2c3efa6016efcae13fd92a8a17c (patch) | |
tree | 6bbcf8953012000cb0a22b47ff616ff2dbe481f2 /include/linux/moduleparam.h | |
parent | a1054322afc8120ea5a50bc84e5beeda54571862 (diff) | |
download | linux-914dcaa84c53f2c3efa6016efcae13fd92a8a17c.tar.xz |
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.h | 2 |
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 *)) /* Called on module insert or kernel boot */ extern 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)); |