Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252055
b: refs/heads/master
c: e130aa7
h: refs/heads/master
i:
  252053: f6f950f
  252051: 0172e5c
  252047: 004e0b4
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed May 27, 2011
1 parent 6bc0ab9 commit 27c2bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a8cb8e34149251ad1f280fe099a4f971554639a
refs/heads/master: e130aa70f438855b4a0e13a5249951da001798d4
4 changes: 2 additions & 2 deletions trunk/fs/proc/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static inline void task_name(struct seq_file *m, struct task_struct *p)
* you can test for combinations of others with
* simple bit tests.
*/
static const char *task_state_array[] = {
static const char * const task_state_array[] = {
"R (running)", /* 0 */
"S (sleeping)", /* 1 */
"D (disk sleep)", /* 2 */
Expand All @@ -147,7 +147,7 @@ static const char *task_state_array[] = {
static inline const char *get_task_state(struct task_struct *tsk)
{
unsigned int state = (tsk->state & TASK_REPORT) | tsk->exit_state;
const char **p = &task_state_array[0];
const char * const *p = &task_state_array[0];

BUILD_BUG_ON(1 + ilog2(TASK_STATE_MAX) != ARRAY_SIZE(task_state_array));

Expand Down

0 comments on commit 27c2bb1

Please sign in to comment.