Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1271006

Re: [PATCH] clocksource: fsl: avoid harmless 64-bit warnings

From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] clocksource: fsl: avoid harmless 64-bit warnings
Date 2015-11-17 10:40 +0100
Message-ID <qvKU1-3cW-17@gated-at.bofh.it> (permalink)
References <qvuYX-1eV-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/16/2015 05:34 PM, Arnd Bergmann wrote:
> 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 <arnd@arndb.de>

Thanks Arnd for the fix. I will apply it on top of branch.


--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] clocksource: fsl: avoid harmless 64-bit warnings Arnd Bergmann <arnd@arndb.de> - 2015-11-16 17:40 +0100
  Re: [PATCH] clocksource: fsl: avoid harmless 64-bit warnings Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-11-17 10:40 +0100
  [tip:timers/urgent] clocksource/fsl:   Avoid harmless 64-bit warnings tip-bot for Arnd Bergmann <tipbot@zytor.com> - 2015-11-17 11:40 +0100
    Re: [tip:timers/urgent] clocksource/fsl: Avoid harmless 64-bit  warnings Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-11-17 12:30 +0100
      Re: [tip:timers/urgent] clocksource/fsl: Avoid harmless 64-bit  warnings Thomas Gleixner <tglx@linutronix.de> - 2015-11-17 12:40 +0100
        Re: [tip:timers/urgent] clocksource/fsl: Avoid harmless 64-bit  warnings Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-11-17 12:50 +0100
        Re: [tip:timers/urgent] clocksource/fsl: Avoid harmless 64-bit  warnings Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-11-17 12:50 +0100

csiph-web