Commit 1996a10948e50e546dc2b64276723c0b64d3173b
Committed by
James Morris
1 parent
63cb344923
security/selinux: constify function pointer tables and fields
Constify function pointer tables and fields. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: James Morris <jmorris@namei.org>
Showing 3 changed files with 4 additions and 4 deletions Side-by-side Diff
include/linux/security.h
security/keys/proc.c
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | static void proc_keys_stop(struct seq_file *p, void *v); |
27 | 27 | static int proc_keys_show(struct seq_file *m, void *v); |
28 | 28 | |
29 | -static struct seq_operations proc_keys_ops = { | |
29 | +static const struct seq_operations proc_keys_ops = { | |
30 | 30 | .start = proc_keys_start, |
31 | 31 | .next = proc_keys_next, |
32 | 32 | .stop = proc_keys_stop, |
... | ... | @@ -47,7 +47,7 @@ |
47 | 47 | static void proc_key_users_stop(struct seq_file *p, void *v); |
48 | 48 | static int proc_key_users_show(struct seq_file *m, void *v); |
49 | 49 | |
50 | -static struct seq_operations proc_key_users_ops = { | |
50 | +static const struct seq_operations proc_key_users_ops = { | |
51 | 51 | .start = proc_key_users_start, |
52 | 52 | .next = proc_key_users_next, |
53 | 53 | .stop = proc_key_users_stop, |
security/selinux/selinuxfs.c
... | ... | @@ -1222,7 +1222,7 @@ |
1222 | 1222 | static void sel_avc_stats_seq_stop(struct seq_file *seq, void *v) |
1223 | 1223 | { } |
1224 | 1224 | |
1225 | -static struct seq_operations sel_avc_cache_stats_seq_ops = { | |
1225 | +static const struct seq_operations sel_avc_cache_stats_seq_ops = { | |
1226 | 1226 | .start = sel_avc_stats_seq_start, |
1227 | 1227 | .next = sel_avc_stats_seq_next, |
1228 | 1228 | .show = sel_avc_stats_seq_show, |