Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755559AbYLHB0s (ORCPT ); Sun, 7 Dec 2008 20:26:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753287AbYLHB0k (ORCPT ); Sun, 7 Dec 2008 20:26:40 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:53039 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751202AbYLHB0j (ORCPT ); Sun, 7 Dec 2008 20:26:39 -0500 Message-ID: <493C776F.9080005@cn.fujitsu.com> Date: Mon, 08 Dec 2008 09:25:03 +0800 From: Li Zefan User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Ken Chen CC: Paul Menage , Andrew Morton , Linux Kernel Mailing List , Ingo Molnar Subject: Re: [patch] export percpu cpuacct cgroup stats References: <49376BE3.1040909@cn.fujitsu.com> <6599ad830812041502m15f54f0ckd8baa0a1792fc31e@mail.gmail.com> <4938DE1C.6070608@cn.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 25 Ken Chen wrote: > On Thu, Dec 4, 2008 at 11:54 PM, Li Zefan 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/