mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
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>
This commit is contained in:
parent
108a8a11cb
commit
ccf94f1b4a
3 changed files with 7 additions and 7 deletions
|
@ -526,21 +526,21 @@ static void m_stop(struct seq_file *seq, void *v)
|
|||
return;
|
||||
}
|
||||
|
||||
struct seq_operations proc_uid_seq_operations = {
|
||||
const struct seq_operations proc_uid_seq_operations = {
|
||||
.start = uid_m_start,
|
||||
.stop = m_stop,
|
||||
.next = m_next,
|
||||
.show = uid_m_show,
|
||||
};
|
||||
|
||||
struct seq_operations proc_gid_seq_operations = {
|
||||
const struct seq_operations proc_gid_seq_operations = {
|
||||
.start = gid_m_start,
|
||||
.stop = m_stop,
|
||||
.next = m_next,
|
||||
.show = gid_m_show,
|
||||
};
|
||||
|
||||
struct seq_operations proc_projid_seq_operations = {
|
||||
const struct seq_operations proc_projid_seq_operations = {
|
||||
.start = projid_m_start,
|
||||
.stop = m_stop,
|
||||
.next = m_next,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue