From: Li Zefan <lizf@cn.fujitsu.com>
To: Ken Chen <kenchen@google.com>
Cc: Paul Menage <menage@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [patch] export percpu cpuacct cgroup stats
Date: Mon, 08 Dec 2008 09:25:03 +0800 [thread overview]
Message-ID: <493C776F.9080005@cn.fujitsu.com> (raw)
In-Reply-To: <b040c32a0812051010m11e9d376qcd77a3a71a4f42b9@mail.gmail.com>
Ken Chen wrote:
> On Thu, Dec 4, 2008 at 11:54 PM, Li Zefan <lizf@cn.fujitsu.com> wrote:
>>> + seq_printf(m, "%llu ", percpu);
>> Should be:
>> + seq_printf(m, "%llu ", (unsigned long long)percpu);
>>
>> Otherwsise:
>> kernel/sched.c: In function 'cpuacct_percpu_seq_read':
>> kernel/sched.c:9359: warning: format '%llu' expects type 'long long unsigned int',
>> but argument 3 has type 'u64'
>
> I'm curious what compiler and CPU arch target are you using that cause
> compiler to spit out this warning message? On x86_64 u64 is unsigned
> long long and gcc v4.2.4 doesn't give such warning.
>
I tried it on IA64, and gcc version is 4.1.2.
On IA64, u64 is unsigned long.
prev parent reply other threads:[~2008-12-08 1:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 4:48 [patch] export percpu cpuacct cgroup stats Ken Chen
2008-12-04 5:34 ` Li Zefan
2008-12-04 9:24 ` Ingo Molnar
2008-12-04 23:02 ` Paul Menage
2008-12-05 7:44 ` Ken Chen
2008-12-05 7:54 ` Li Zefan
2008-12-05 8:30 ` Ken Chen
2008-12-05 8:35 ` Li Zefan
2008-12-05 13:52 ` Ingo Molnar
2008-12-05 18:16 ` Ken Chen
2008-12-07 7:27 ` Andrew Morton
2008-12-08 14:33 ` Ingo Molnar
2008-12-05 18:10 ` Ken Chen
2008-12-08 1:25 ` Li Zefan [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=493C776F.9080005@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=kenchen@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
--cc=mingo@elte.hu \
/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