Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Luc Van Oostenryck
On Tue, Mar 13, 2018 at 07:08:06PM +0100, Peter Zijlstra wrote: > On Tue, Mar 13, 2018 at 07:00:17PM +0100, Luc Van Oostenryck wrote: > > The issue here is that sparse has a whole class of warnings that are > > given very early (here at expansion of constant expressions), before > > eliminating

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Luc Van Oostenryck
On Tue, Mar 13, 2018 at 07:08:06PM +0100, Peter Zijlstra wrote: > On Tue, Mar 13, 2018 at 07:00:17PM +0100, Luc Van Oostenryck wrote: > > The issue here is that sparse has a whole class of warnings that are > > given very early (here at expansion of constant expressions), before > > eliminating

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Peter Zijlstra
On Tue, Mar 13, 2018 at 07:00:17PM +0100, Luc Van Oostenryck wrote: > The issue here is that sparse has a whole class of warnings that are > given very early (here at expansion of constant expressions), before > eliminating code from branches that are never taken (which, surprise, > need itself to

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Peter Zijlstra
On Tue, Mar 13, 2018 at 07:00:17PM +0100, Luc Van Oostenryck wrote: > The issue here is that sparse has a whole class of warnings that are > given very early (here at expansion of constant expressions), before > eliminating code from branches that are never taken (which, surprise, > need itself to

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Luc Van Oostenryck
On Tue, Mar 13, 2018 at 02:08:13PM +0300, Dmitry Vyukov wrote: > On Tue, Mar 13, 2018 at 1:46 PM, Peter Zijlstra wrote: > > On Tue, Mar 13, 2018 at 11:49:17AM +0300, Dmitry Vyukov wrote: > >> On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: > >> >

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Luc Van Oostenryck
On Tue, Mar 13, 2018 at 02:08:13PM +0300, Dmitry Vyukov wrote: > On Tue, Mar 13, 2018 at 1:46 PM, Peter Zijlstra wrote: > > On Tue, Mar 13, 2018 at 11:49:17AM +0300, Dmitry Vyukov wrote: > >> On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: > >> > On Mon, Mar 12, 2018 at 5:52 PM, kbuild

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Christopher Li
On Tue, Mar 13, 2018 at 4:08 AM, Dmitry Vyukov wrote: > On Tue, Mar 13, 2018 at 1:46 PM, Peter Zijlstra wrote: >> >>> >> b06ed71a6 Dmitry Vyukov 2018-01-29 283 static __always_inline unsigned >>> >> long >>> >> b06ed71a6 Dmitry Vyukov 2018-01-29 284

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Christopher Li
On Tue, Mar 13, 2018 at 4:08 AM, Dmitry Vyukov wrote: > On Tue, Mar 13, 2018 at 1:46 PM, Peter Zijlstra wrote: >> >>> >> b06ed71a6 Dmitry Vyukov 2018-01-29 283 static __always_inline unsigned >>> >> long >>> >> b06ed71a6 Dmitry Vyukov 2018-01-29 284 cmpxchg_size(volatile void >>> >> *ptr,

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Dmitry Vyukov
On Tue, Mar 13, 2018 at 1:46 PM, Peter Zijlstra wrote: > On Tue, Mar 13, 2018 at 11:49:17AM +0300, Dmitry Vyukov wrote: >> On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: >> > On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot >> >>

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Dmitry Vyukov
On Tue, Mar 13, 2018 at 1:46 PM, Peter Zijlstra wrote: > On Tue, Mar 13, 2018 at 11:49:17AM +0300, Dmitry Vyukov wrote: >> On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: >> > On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot >> >>kernel/locking/qspinlock.c:418:22: sparse: incorrect

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Peter Zijlstra
On Tue, Mar 13, 2018 at 11:49:17AM +0300, Dmitry Vyukov wrote: > On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: > > On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot > >>kernel/locking/qspinlock.c:418:22: sparse: incorrect type in assignment > >> (different

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Peter Zijlstra
On Tue, Mar 13, 2018 at 11:49:17AM +0300, Dmitry Vyukov wrote: > On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: > > On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot > >>kernel/locking/qspinlock.c:418:22: sparse: incorrect type in assignment > >> (different modifiers) @@expected

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Dmitry Vyukov
On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: > On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot > wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git >> locking/core >> head:

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-13 Thread Dmitry Vyukov
On Mon, Mar 12, 2018 at 6:17 PM, Dmitry Vyukov wrote: > On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot > wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git >> locking/core >> head: ac605bee0bfab40fd5d11964705e907d2d5a32de >> commit:

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-12 Thread Dmitry Vyukov
On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > locking/core > head: ac605bee0bfab40fd5d11964705e907d2d5a32de > commit: 8bf705d130396e69c04cd8e6e010244ad2ce71f4 [9/11] locking/atomic/x86:

Re: [tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-12 Thread Dmitry Vyukov
On Mon, Mar 12, 2018 at 5:52 PM, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > locking/core > head: ac605bee0bfab40fd5d11964705e907d2d5a32de > commit: 8bf705d130396e69c04cd8e6e010244ad2ce71f4 [9/11] locking/atomic/x86: > Switch atomic.h to

[tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-12 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core head: ac605bee0bfab40fd5d11964705e907d2d5a32de commit: 8bf705d130396e69c04cd8e6e010244ad2ce71f4 [9/11] locking/atomic/x86: Switch atomic.h to use atomic-instrumented.h reproduce: # apt-get install sparse

[tip:locking/core 9/11] include/asm-generic/atomic-instrumented.h:288:24: sparse: cast truncates bits from constant value (100 becomes 0)

2018-03-12 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core head: ac605bee0bfab40fd5d11964705e907d2d5a32de commit: 8bf705d130396e69c04cd8e6e010244ad2ce71f4 [9/11] locking/atomic/x86: Switch atomic.h to use atomic-instrumented.h reproduce: # apt-get install sparse