Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753970AbZICIjA (ORCPT ); Thu, 3 Sep 2009 04:39:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753685AbZICIi7 (ORCPT ); Thu, 3 Sep 2009 04:38:59 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:39560 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753586AbZICIi7 (ORCPT ); Thu, 3 Sep 2009 04:38:59 -0400 Date: Thu, 3 Sep 2009 10:38:44 +0200 From: Ingo Molnar To: Stephen Rothwell Cc: Thomas Gleixner , "H. Peter Anvin" , Peter Zijlstra , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Xiao Guangrong Subject: Re: linux-next: tip tree build warnings Message-ID: <20090903083844.GA9912@elte.hu> References: <20090903182510.8fd4d4d1.sfr@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090903182510.8fd4d4d1.sfr@canb.auug.org.au> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1772 Lines: 40 * Stephen Rothwell wrote: > Hi all, > > Today's linux-next build (powerpc ppc64_defconfig) produced these warning: > > In file included from include/trace/ftrace.h:285, > from include/trace/define_trace.h:61, > from include/trace/events/timer.h:342, > from kernel/timer.c:50: > include/trace/events/timer.h: In function 'ftrace_raw_output_itimer_state': > include/trace/events/timer.h:280: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'cputime_t' > include/trace/events/timer.h: In function 'ftrace_raw_output_itimer_expire': > include/trace/events/timer.h:317: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'cputime_t' Should be harmless with no runtime effects - the fix would be to harmonize the cputime_t types across architectures. > Introduced by commit 3f0a525ebf4b8ef041a332bbe4a73aee94bb064b ("timers: Add tracepoints for itimer") from the tip tree. > > cputime_t is variously "u64", "unsigned long long" and "unsigned > long" on different architectures. Should be unsigned long i think. Most architectures use it as unsigned long via include/asm-generic/cputime.h, except these three: arch/ia64/include/asm/cputime.h:typedef u64 cputime_t; arch/powerpc/include/asm/cputime.h:typedef u64 cputime_t; arch/s390/include/asm/cputime.h:typedef unsigned long long cputime_t; Or we could eliminate the type altogether as well and standardize on u64. Thomas? Ingo -- 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/