Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756781AbYLESKk (ORCPT ); Fri, 5 Dec 2008 13:10:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754010AbYLESKa (ORCPT ); Fri, 5 Dec 2008 13:10:30 -0500 Received: from smtp-out.google.com ([216.239.45.13]:5674 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753849AbYLESKa (ORCPT ); Fri, 5 Dec 2008 13:10:30 -0500 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding; b=W+AXMb4CYBjJ3OZkGj28CS3kyR11OyfTAqxpsHUxzsoc1wY+b8TcI8vrf/862RLAS RcjX3F0X2diz5uUddYF4A== MIME-Version: 1.0 In-Reply-To: <4938DE1C.6070608@cn.fujitsu.com> References: <49376BE3.1040909@cn.fujitsu.com> <6599ad830812041502m15f54f0ckd8baa0a1792fc31e@mail.gmail.com> <4938DE1C.6070608@cn.fujitsu.com> Date: Fri, 5 Dec 2008 10:10:25 -0800 Message-ID: Subject: Re: [patch] export percpu cpuacct cgroup stats From: Ken Chen To: Li Zefan Cc: Paul Menage , Andrew Morton , Linux Kernel Mailing List , Ingo Molnar 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: 841 Lines: 21 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. - Ken -- 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/