From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636AbbKQLZa (ORCPT ); Tue, 17 Nov 2015 06:25:30 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:38180 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751286AbbKQLZ3 (ORCPT ); Tue, 17 Nov 2015 06:25:29 -0500 Subject: Re: [tip:timers/urgent] clocksource/fsl: Avoid harmless 64-bit warnings To: kernel@pengutronix.de, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, Li.Xiubo@freescale.com, shawnguo@kernel.org, hpa@zytor.com, arnd@arndb.de, stefan@agner.ch, linux-tip-commits@vger.kernel.org References: <3990834.xnjhm37Grs@wuerfel> From: Daniel Lezcano Message-ID: <564B0EA6.708@linaro.org> Date: Tue, 17 Nov 2015 12:25:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/17/2015 11:36 AM, tip-bot for Arnd Bergmann wrote: > Commit-ID: dde7632ed02382e4bac2b57c66ee2285764f2cd7 > Gitweb: http://git.kernel.org/tip/dde7632ed02382e4bac2b57c66ee2285764f2cd7 > Author: Arnd Bergmann > AuthorDate: Mon, 16 Nov 2015 17:34:50 +0100 > Committer: Thomas Gleixner > CommitDate: Mon, 16 Nov 2015 19:07:08 +0100 > > clocksource/fsl: Avoid harmless 64-bit warnings > > The ftm_clockevent_init passes the value of "~0UL" into a function > that takes a 32-bit argument, which drops the upper 32 bits, as > gcc warns about on ARM64: > > clocksource/fsl_ftm_timer.c: In function 'ftm_clockevent_init': > clocksource/fsl_ftm_timer.c:206:13: warning: large integer implicitly truncated to unsigned type [-Woverflow] > > This was obviously unintended behavior, and is easily avoided by > using '~0u' as the integer literal, because that is 32-bit wide > on all architectures. > > Signed-off-by: Arnd Bergmann > Cc: linux-arm-kernel@lists.infradead.org > Cc: Xiubo Li > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Stefan Agner > Cc: Daniel Lezcano > Link: http://lkml.kernel.org/r/3990834.xnjhm37Grs@wuerfel > Signed-off-by: Thomas Gleixner > > --- Ok, I dropped the patch from my tree. -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog