diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-08 17:21:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:22 -0400 |
commit | ccf94f1b4a8560ffdc221840535bae5e5a91a53c (patch) | |
tree | c0b14632b0660fbd4f0349fe00d05b347a47cc96 /kernel/user_namespace.c | |
parent | 108a8a11cb64981b03bcb78fd78d09a53967d14f (diff) |
proc: constify seq_operations
proc_uid_seq_operations, proc_gid_seq_operations and
proc_projid_seq_operations are only called in proc_id_map_open with
seq_open as const struct seq_operations so we can constify the 3
structures and update proc_id_map_open prototype.
text data bss dec hex filename
6817 404 1984 9205 23f5 kernel/user_namespace.o-before
6913 308 1984 9205 23f5 kernel/user_namespace.o-after
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/user_namespace.c')
-rw-r--r-- | kernel/user_namespace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index fcc02560fd6b..aa312b0dc3ec 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c | |||
@@ -526,21 +526,21 @@ static void m_stop(struct seq_file *seq, void *v) | |||
526 | return; | 526 | return; |
527 | } | 527 | } |
528 | 528 | ||
529 | struct seq_operations proc_uid_seq_operations = { | 529 | const struct seq_operations proc_uid_seq_operations = { |
530 | .start = uid_m_start, | 530 | .start = uid_m_start, |
531 | .stop = m_stop, | 531 | .stop = m_stop, |
532 | .next = m_next, | 532 | .next = m_next, |
533 | .show = uid_m_show, | 533 | .show = uid_m_show, |
534 | }; | 534 | }; |
535 | 535 | ||
536 | struct seq_operations proc_gid_seq_operations = { | 536 | const struct seq_operations proc_gid_seq_operations = { |
537 | .start = gid_m_start, | 537 | .start = gid_m_start, |
538 | .stop = m_stop, | 538 | .stop = m_stop, |
539 | .next = m_next, | 539 | .next = m_next, |
540 | .show = gid_m_show, | 540 | .show = gid_m_show, |
541 | }; | 541 | }; |
542 | 542 | ||
543 | struct seq_operations proc_projid_seq_operations = { | 543 | const struct seq_operations proc_projid_seq_operations = { |
544 | .start = projid_m_start, | 544 | .start = projid_m_start, |
545 | .stop = m_stop, | 545 | .stop = m_stop, |
546 | .next = m_next, | 546 | .next = m_next, |