From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753531AbbE1IZD (ORCPT ); Thu, 28 May 2015 04:25:03 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:34169 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151AbbE1IYw (ORCPT ); Thu, 28 May 2015 04:24:52 -0400 Message-ID: <5566D0D4.8040807@linaro.org> Date: Thu, 28 May 2015 10:24:52 +0200 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Maxime Coquelin CC: Thomas Gleixner , linux-kernel@vger.kernel.org, fengguang.wu@intel.com, luc.vanoostenryck@gmail.com Subject: Re: [PATCH v2] clockevents: timer-stm32: Fix build warning spotted by kbuild test robot References: <1432789553-21743-1-git-send-email-mcoquelin.stm32@gmail.com> In-Reply-To: <1432789553-21743-1-git-send-email-mcoquelin.stm32@gmail.com> 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 05/28/2015 07:05 AM, Maxime Coquelin wrote: > This patch fixes below warning spotted by kbuild test robot when building > with ARCH=powerpc: > > drivers/clocksource/timer-stm32.c: In function 'stm32_clockevent_init': >>> drivers/clocksource/timer-stm32.c:140:9: warning: large integer implicitly truncated to unsigned type [-Woverflow] > writel_relaxed(~0UL, data->base + TIM_ARR); > > The fix consists in using 0U instead of 0UL. > > Reported-by: kbuild test robot > Signed-off-by: Maxime Coquelin > --- > v2: Use 0U instead of casting to u32. > --- Applied, thanks ! -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog