aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2006-12-06 23:40:36 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:46 -0500
commit15ad7cdcfd76450d4beebc789ec646664238184d (patch)
tree279d05a76ae0906c23ee2de8c5684d95d9886ad3 /mm/slab.c
parent4a08a9f68168e547c2baf100020e9b96cae5fbd1 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 86f5d6e995bb..068cb4503c15 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -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
4145struct seq_operations slabinfo_op = { 4145const 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
4343struct seq_operations slabstats_op = { 4343const 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,