mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
a1054322af
commit
914dcaa84c
3 changed files with 7 additions and 7 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue