lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <564B0EA6.708@linaro.org>
Date:	Tue, 17 Nov 2015 12:25:26 +0100
From:	Daniel Lezcano <daniel.lezcano@...aro.org>
To:	kernel@...gutronix.de, mingo@...nel.org, tglx@...utronix.de,
	linux-kernel@...r.kernel.org, Li.Xiubo@...escale.com,
	shawnguo@...nel.org, hpa@...or.com, arnd@...db.de, stefan@...er.ch,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:timers/urgent] clocksource/fsl: Avoid harmless 64-bit
 warnings

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 <arnd@...db.de>
> AuthorDate: Mon, 16 Nov 2015 17:34:50 +0100
> Committer:  Thomas Gleixner <tglx@...utronix.de>
> 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 <arnd@...db.de>
> Cc: linux-arm-kernel@...ts.infradead.org
> Cc: Xiubo Li <Li.Xiubo@...escale.com>
> Cc: Shawn Guo <shawnguo@...nel.org>
> Cc: Sascha Hauer <kernel@...gutronix.de>
> Cc: Stefan Agner <stefan@...er.ch>
> Cc: Daniel Lezcano <daniel.lezcano@...aro.org>
> Link: http://lkml.kernel.org/r/3990834.xnjhm37Grs@wuerfel
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
>
> ---

Ok, I dropped the patch from my tree.

   -- Daniel


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ