All of lore.kernel.org
 help / color / mirror / Atom feed
* [mmotm][PATCH] proc: enclose desc variable of show_stat() in CONFIG_SPARSE_IRQ
@ 2008-12-16  8:00 KOSAKI Motohiro
  2008-12-16  8:22 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: KOSAKI Motohiro @ 2008-12-16  8:00 UTC (permalink / raw)
  To: Yinghai Lu, Ingo Molnar, LKML, Andrew Morton; +Cc: kosaki.motohiro

Applied after: linux-next.patch
==
commit 240d367b4e6c6e3c5075e034db14dba60a6f5fa7 moved desc usage point into
#ifdef CONFIG_SPARSE_IRQ.
Then, variable declaration also shold be enclosed. otherwise following warning happend.

fs/proc/stat.c: In function 'show_stat':
fs/proc/stat.c:31: warning: unused variable 'desc'


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: Yinghai Lu <yinghai@kernel.org>
CC: Ingo Molnar <mingo@elte.hu>
---
 fs/proc/stat.c |    2 ++
 1 file changed, 2 insertions(+)

Index: b/fs/proc/stat.c
===================================================================
--- a/fs/proc/stat.c
+++ b/fs/proc/stat.c
@@ -28,7 +28,9 @@ static int show_stat(struct seq_file *p,
 	u64 sum_softirq = 0;
 	struct timespec boottime;
 	unsigned int per_irq_sum;
+#ifdef CONFIG_SPARSE_IRQ
 	struct irq_desc *desc;
+#endif
 
 	user = nice = system = idle = iowait =
 		irq = softirq = steal = cputime64_zero;



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

end of thread, other threads:[~2008-12-16 10:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16  8:00 [mmotm][PATCH] proc: enclose desc variable of show_stat() in CONFIG_SPARSE_IRQ KOSAKI Motohiro
2008-12-16  8:22 ` Andrew Morton
2008-12-16  8:25   ` KOSAKI Motohiro
2008-12-16 10:25     ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.