diff options
author | Dan Streetman <ddstreet@ieee.org> | 2015-06-17 06:17:52 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-06-23 15:27:37 +0930 |
commit | 5104b7d7678b0029417f6ac08243773a77259ac6 (patch) | |
tree | bf1a7a2703674d474db5618302cf8b5acf3f8adc /include/linux/moduleparam.h | |
parent | 74c3dea355245c17ee407a3ce3ea34f55b40f2eb (diff) | |
download | linux-stable-5104b7d7678b0029417f6ac08243773a77259ac6.tar.gz linux-stable-5104b7d7678b0029417f6ac08243773a77259ac6.tar.bz2 linux-stable-5104b7d7678b0029417f6ac08243773a77259ac6.zip |
module: make perm const
Change the struct kernel_param.perm field to a const, as it should never
be changed.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cut from larger patch)
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 7e0079936396..ab5031453807 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h @@ -68,7 +68,7 @@ enum { struct kernel_param { const char *name; const struct kernel_param_ops *ops; - u16 perm; + const u16 perm; s8 level; u8 flags; union { |