aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2014-08-08 17:21:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-08 18:57:22 -0400
commitcedbccab8bb104a1e2d6b40e3db2159b30c6cd76 (patch)
tree9fd96838fdcade9fc2fc8e83985dc05acd223ddb /fs/proc
parent849d20a12822cba355c054ab0bfe490473413cce (diff)
proc: more "const char *" pointers
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 35afb2eb4a6f..0e76895f47f5 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -105,7 +105,7 @@
105 */ 105 */
106 106
107struct pid_entry { 107struct pid_entry {
108 char *name; 108 const char *name;
109 int len; 109 int len;
110 umode_t mode; 110 umode_t mode;
111 const struct inode_operations *iop; 111 const struct inode_operations *iop;
@@ -418,8 +418,8 @@ static int proc_oom_score(struct task_struct *task, char *buffer)
418} 418}
419 419
420struct limit_names { 420struct limit_names {
421 char *name; 421 const char *name;
422 char *unit; 422 const char *unit;
423}; 423};
424 424
425static const struct limit_names lnames[RLIM_NLIMITS] = { 425static const struct limit_names lnames[RLIM_NLIMITS] = {
@@ -2056,7 +2056,7 @@ static int show_timer(struct seq_file *m, void *v)
2056 struct k_itimer *timer; 2056 struct k_itimer *timer;
2057 struct timers_private *tp = m->private; 2057 struct timers_private *tp = m->private;
2058 int notify; 2058 int notify;
2059 static char *nstr[] = { 2059 static const char * const nstr[] = {
2060 [SIGEV_SIGNAL] = "signal", 2060 [SIGEV_SIGNAL] = "signal",
2061 [SIGEV_NONE] = "none", 2061 [SIGEV_NONE] = "none",
2062 [SIGEV_THREAD] = "thread", 2062 [SIGEV_THREAD] = "thread",