[PATCH] on i386 or x86_64:

From: Nathan Zimmer
Date: Tue Jan 22 2013 - 10:09:17 EST


kernel/sched/stats.c:31:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

Signed-off-by: Nathan Zimmer <nzimmer@xxxxxxx>
---
kernel/sched/stats.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/kernel/sched/stats.c b/kernel/sched/stats.c
index bae2757..3cbfc46 100644
--- a/kernel/sched/stats.c
+++ b/kernel/sched/stats.c
@@ -25,14 +25,13 @@ static int show_schedstat(struct seq_file *seq, void *v)
seq_printf(seq, "version %d\n", SCHEDSTAT_VERSION);
seq_printf(seq, "timestamp %lu\n", jiffies);
} else {
-
- cpu = (unsigned long)(v - 2);
-
- struct rq *rq = cpu_rq(cpu);
+ struct rq *rq;
#ifdef CONFIG_SMP
struct sched_domain *sd;
int dcount = 0;
#endif
+ cpu = (unsigned long)(v - 2);
+ rq = cpu_rq(cpu);

/* runqueue-specific stats */
seq_printf(seq,
--
1.6.0.2


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/