public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] constify sched.c stat_nam strings
@ 2006-06-13 19:55 Andreas Mohr
  2006-06-13 21:22 ` Michael Tokarev
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Mohr @ 2006-06-13 19:55 UTC (permalink / raw)
  To: Andrew Morton; +Cc: kernel list

Hi all,

Signed-off-by: Andreas Mohr <andi@lisas.de>


diff -urN linux-2.6.17-rc6-mm2.orig/kernel/sched.c linux-2.6.17-rc6-mm2.my/kernel/sched.c
--- linux-2.6.17-rc6-mm2.orig/kernel/sched.c	2006-06-13 19:28:17.000000000 +0200
+++ linux-2.6.17-rc6-mm2.my/kernel/sched.c	2006-06-13 19:32:03.000000000 +0200
@@ -4662,7 +4662,7 @@
 	task_t *relative;
 	unsigned state;
 	unsigned long free = 0;
-	static const char *stat_nam[] = { "R", "S", "D", "T", "t", "Z", "X" };
+	static const char * const stat_nam[] = { "R", "S", "D", "T", "t", "Z", "X" };
 
 	printk("%-13.13s ", p->comm);
 	state = p->state ? __ffs(p->state) + 1 : 0;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-29 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 19:55 [PATCH -mm] constify sched.c stat_nam strings Andreas Mohr
2006-06-13 21:22 ` Michael Tokarev
2006-06-29 19:43   ` Andreas Mohr
2006-06-29 20:17     ` [PATCH -mm] small kernel/sched.c cleanup Andreas Mohr
2006-06-29 20:57       ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox