Re: [PATCH 11/14] IB/uverbs: fix gcc-7 type warning

2017-07-14 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 11:31:04AM +0200, Arnd Bergmann wrote: > When using ccache, we get a harmless warning about the fact that > we use the result of a multiplication as a condition: > > drivers/infiniband/core/uverbs_main.c: In function 'ib_uverbs_write': >

Re: [PATCH 11/14] IB/uverbs: fix gcc-7 type warning

2017-07-14 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 11:31:04AM +0200, Arnd Bergmann wrote: > When using ccache, we get a harmless warning about the fact that > we use the result of a multiplication as a condition: > > drivers/infiniband/core/uverbs_main.c: In function 'ib_uverbs_write': >

[PATCH 11/14] IB/uverbs: fix gcc-7 type warning

2017-07-14 Thread Arnd Bergmann
When using ccache, we get a harmless warning about the fact that we use the result of a multiplication as a condition: drivers/infiniband/core/uverbs_main.c: In function 'ib_uverbs_write': drivers/infiniband/core/uverbs_main.c:787:40: error: '*' in boolean context, suggest '&&' instead

[PATCH 11/14] IB/uverbs: fix gcc-7 type warning

2017-07-14 Thread Arnd Bergmann
When using ccache, we get a harmless warning about the fact that we use the result of a multiplication as a condition: drivers/infiniband/core/uverbs_main.c: In function 'ib_uverbs_write': drivers/infiniband/core/uverbs_main.c:787:40: error: '*' in boolean context, suggest '&&' instead