diff options
author | Andrew Morton <akpm@osdl.org> | 2006-12-29 19:49:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-30 13:56:43 -0500 |
commit | 089e34b60033863549fbe561d31ac8c778a20e7f (patch) | |
tree | aea34fde97b91231626f54440390456e1bd3e0aa | |
parent | 918d3f90e8d5657491024f64427e9a5ea632d284 (diff) |
[PATCH] cpuset procfs warning fix
fs/proc/base.c:1869: warning: initialization discards qualifiers from pointer target type
fs/proc/base.c:2150: warning: initialization discards qualifiers from pointer target type
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/cpuset.h | 2 | ||||
-rw-r--r-- | kernel/cpuset.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 826b15e914e2..fd404416f31c 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -55,7 +55,7 @@ extern int cpuset_excl_nodes_overlap(const struct task_struct *p); | |||
55 | extern int cpuset_memory_pressure_enabled; | 55 | extern int cpuset_memory_pressure_enabled; |
56 | extern void __cpuset_memory_pressure_bump(void); | 56 | extern void __cpuset_memory_pressure_bump(void); |
57 | 57 | ||
58 | extern const struct file_operations proc_cpuset_operations; | 58 | extern struct file_operations proc_cpuset_operations; |
59 | extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); | 59 | extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); |
60 | 60 | ||
61 | extern void cpuset_lock(void); | 61 | extern void cpuset_lock(void); |
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 232aed2b10f9..6b05dc69c959 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -2656,7 +2656,7 @@ static int cpuset_open(struct inode *inode, struct file *file) | |||
2656 | return single_open(file, proc_cpuset_show, pid); | 2656 | return single_open(file, proc_cpuset_show, pid); |
2657 | } | 2657 | } |
2658 | 2658 | ||
2659 | const struct file_operations proc_cpuset_operations = { | 2659 | struct file_operations proc_cpuset_operations = { |
2660 | .open = cpuset_open, | 2660 | .open = cpuset_open, |
2661 | .read = seq_read, | 2661 | .read = seq_read, |
2662 | .llseek = seq_lseek, | 2662 | .llseek = seq_lseek, |