diff options
author | Helge Deller <deller@gmx.de> | 2006-12-06 23:40:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:46 -0500 |
commit | 15ad7cdcfd76450d4beebc789ec646664238184d (patch) | |
tree | 279d05a76ae0906c23ee2de8c5684d95d9886ad3 /mm/slab.c | |
parent | 4a08a9f68168e547c2baf100020e9b96cae5fbd1 (diff) |
[PATCH] struct seq_operations and struct file_operations constification
- move some file_operations structs into the .rodata section
- move static strings from policy_types[] array into the .rodata section
- fix generic seq_operations usages, so that those structs may be defined
as "const" as well
[akpm@osdl.org: couple of fixes]
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4142,7 +4142,7 @@ static int s_show(struct seq_file *m, void *p) | |||
4142 | * + further values on SMP and with statistics enabled | 4142 | * + further values on SMP and with statistics enabled |
4143 | */ | 4143 | */ |
4144 | 4144 | ||
4145 | struct seq_operations slabinfo_op = { | 4145 | const struct seq_operations slabinfo_op = { |
4146 | .start = s_start, | 4146 | .start = s_start, |
4147 | .next = s_next, | 4147 | .next = s_next, |
4148 | .stop = s_stop, | 4148 | .stop = s_stop, |
@@ -4340,7 +4340,7 @@ static int leaks_show(struct seq_file *m, void *p) | |||
4340 | return 0; | 4340 | return 0; |
4341 | } | 4341 | } |
4342 | 4342 | ||
4343 | struct seq_operations slabstats_op = { | 4343 | const struct seq_operations slabstats_op = { |
4344 | .start = leaks_start, | 4344 | .start = leaks_start, |
4345 | .next = s_next, | 4345 | .next = s_next, |
4346 | .stop = s_stop, | 4346 | .stop = s_stop, |