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


Groups > linux.kernel > #1572732

Re: [PATCH] workqueue: avoid clang warning

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] workqueue: avoid clang warning
Date 2017-02-02 21:30 +0100
Message-ID <t6wb0-hZ-7@gated-at.bofh.it> (permalink)
References <t66zU-fo-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 01, 2017 at 06:01:17PM +0100, Arnd Bergmann wrote:
> Building with clang shows lots of warning like:
> 
> drivers/amba/bus.c:447:8: warning: implicit conversion from 'long long' to 'int' changes value from 4294967248 to -48
...
> arch/arm/include/asm/atomic.h:21:27: note: expanded from macro 'ATOMIC_INIT'
>  #define ATOMIC_INIT(i)  { (i) }
>                         ~  ^
> 
> This makes the type cast explicit, which shuts up the warning.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied to wq/for-4.11.  Thanks.

-- 
tejun

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


Thread

[PATCH] workqueue: avoid clang warning Arnd Bergmann <arnd@arndb.de> - 2017-02-01 18:10 +0100
  Re: [PATCH] workqueue: avoid clang warning Tejun Heo <tj@kernel.org> - 2017-02-02 21:30 +0100
  [PATCH wq/for-4.11] workqueue: clean up enum definitions in  workqueue.h Tejun Heo <tj@kernel.org> - 2017-02-02 21:30 +0100
    Re: [PATCH wq/for-4.11] workqueue: clean up enum definitions in  workqueue.h Tejun Heo <tj@kernel.org> - 2017-02-02 23:00 +0100

csiph-web