Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-12 Thread Joe Perches
On Thu, 2017-05-11 at 14:49 +0200, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean > '<' ?

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-12 Thread Joe Perches
On Thu, 2017-05-11 at 14:49 +0200, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean > '<' ?

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Christoph Hellwig
On Thu, May 11, 2017 at 02:49:21PM +0200, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Christoph Hellwig
On Thu, May 11, 2017 at 02:49:21PM +0200, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Arnd Bergmann
On Thu, May 11, 2017 at 4:02 PM, Christoph Hellwig wrote: > On Thu, May 11, 2017 at 02:49:21PM +0200, Arnd Bergmann wrote: >> gcc-7 flags the use of integer math inside of a condition >> as a potential bug: >> >> fs/xfs/xfs_bmap_util.c: In function

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Arnd Bergmann
On Thu, May 11, 2017 at 4:02 PM, Christoph Hellwig wrote: > On Thu, May 11, 2017 at 02:49:21PM +0200, Arnd Bergmann wrote: >> gcc-7 flags the use of integer math inside of a condition >> as a potential bug: >> >> fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': >>

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Eric Sandeen
On 5/11/17 7:49 AM, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean > '<' ?

Re: [PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Eric Sandeen
On 5/11/17 7:49 AM, Arnd Bergmann wrote: > gcc-7 flags the use of integer math inside of a condition > as a potential bug: > > fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': > fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean > '<' ?

[PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Arnd Bergmann
gcc-7 flags the use of integer math inside of a condition as a potential bug: fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context] fs/xfs/xfs_bmap_util.c:1629:8: error:

[PATCH] xfs: avoid harmless gcc-7 warnings

2017-05-11 Thread Arnd Bergmann
gcc-7 flags the use of integer math inside of a condition as a potential bug: fs/xfs/xfs_bmap_util.c: In function 'xfs_swap_extents_check_format': fs/xfs/xfs_bmap_util.c:1619:8: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context] fs/xfs/xfs_bmap_util.c:1629:8: error: