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 /kernel/cpuset.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 'kernel/cpuset.c')
-rw-r--r-- | kernel/cpuset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 9b62b4c03ad0..4ef1d29297ca 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -1531,7 +1531,7 @@ static int cpuset_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1531 | return simple_rename(old_dir, old_dentry, new_dir, new_dentry); | 1531 | return simple_rename(old_dir, old_dentry, new_dir, new_dentry); |
1532 | } | 1532 | } |
1533 | 1533 | ||
1534 | static struct file_operations cpuset_file_operations = { | 1534 | static const struct file_operations cpuset_file_operations = { |
1535 | .read = cpuset_file_read, | 1535 | .read = cpuset_file_read, |
1536 | .write = cpuset_file_write, | 1536 | .write = cpuset_file_write, |
1537 | .llseek = generic_file_llseek, | 1537 | .llseek = generic_file_llseek, |
@@ -2605,7 +2605,7 @@ static int cpuset_open(struct inode *inode, struct file *file) | |||
2605 | return single_open(file, proc_cpuset_show, pid); | 2605 | return single_open(file, proc_cpuset_show, pid); |
2606 | } | 2606 | } |
2607 | 2607 | ||
2608 | struct file_operations proc_cpuset_operations = { | 2608 | const struct file_operations proc_cpuset_operations = { |
2609 | .open = cpuset_open, | 2609 | .open = cpuset_open, |
2610 | .read = seq_read, | 2610 | .read = seq_read, |
2611 | .llseek = seq_lseek, | 2611 | .llseek = seq_lseek, |