From: Randy Dunlap <rdunlap@infradead.org>
To: Nathan Zimmer <nzimmer@sgi.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>
Subject: Re: mmotm 2013-01-18-15-48 uploaded (sched/stats.c)
Date: Tue, 22 Jan 2013 10:49:39 -0800 [thread overview]
Message-ID: <50FEDF43.1000703@infradead.org> (raw)
In-Reply-To: <20130122161037.GA24669@gulag1.americas.sgi.com>
On 01/22/13 08:10, Nathan Zimmer wrote:
> On Sat, Jan 19, 2013 at 11:39:13AM -0800, Randy Dunlap wrote:
>> On 01/18/13 15:49, akpm@linux-foundation.org wrote:
>>> The mm-of-the-moment snapshot 2013-01-18-15-48 has been uploaded to
>>>
>>> http://www.ozlabs.org/~akpm/mmotm/
>>>
>>> mmotm-readme.txt says
>>>
>>> README for mm-of-the-moment:
>>>
>>> http://www.ozlabs.org/~akpm/mmotm/
>>>
>>> This is a snapshot of my -mm patch queue. Uploaded at random hopefully
>>> more than once a week.
>>>
>>
>> on i386 or x86_64:
>>
>> kernel/sched/stats.c:31:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
>>
>>
>>
>> --
>> ~Randy
>
> Sorry about that.
> Here is the correction.
>
> From c832132ade12e28cd09d3c13d412fc14a7b9ab87 Mon Sep 17 00:00:00 2001
> From: Nathan Zimmer <nzimmer@sgi.com>
> Date: Tue, 22 Jan 2013 09:09:17 -0600
> Subject: [PATCH] on i386 or x86_64:
>
> kernel/sched/stats.c:31:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
>
> Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Thanks.
Acked-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> 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,
>
--
~Randy
prev parent reply other threads:[~2013-01-22 18:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 23:49 mmotm 2013-01-18-15-48 uploaded akpm
2013-01-19 10:56 ` Zlatko Calusic
2013-01-19 19:28 ` mmotm 2013-01-18-15-48 uploaded (ath9k) Randy Dunlap
2013-01-19 19:39 ` mmotm 2013-01-18-15-48 uploaded (sched/stats.c) Randy Dunlap
2013-01-22 16:10 ` Nathan Zimmer
2013-01-22 18:49 ` Randy Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50FEDF43.1000703@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nzimmer@sgi.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox