Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-29 Thread Joshua Clayton
On Wednesday, December 30, 2015 10:17:50 AM Sudip Mukherjee wrote: > On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > > running sparse on drivers/staging/lustre results in dozens of warnings: > > include/linux/gfp.h:281:41: warning: > > odd constant _Bool cast (40 becomes 1) >

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-29 Thread Sudip Mukherjee
On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > running sparse on drivers/staging/lustre results in dozens of warnings: > include/linux/gfp.h:281:41: warning: > odd constant _Bool cast (40 becomes 1) > > Use "!!" to explicitly convert the result to bool range. > ---

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-29 Thread Joshua Clayton
On Wednesday, December 30, 2015 10:17:50 AM Sudip Mukherjee wrote: > On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > > running sparse on drivers/staging/lustre results in dozens of warnings: > > include/linux/gfp.h:281:41: warning: > > odd constant _Bool cast (40 becomes 1) >

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-29 Thread Sudip Mukherjee
On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > running sparse on drivers/staging/lustre results in dozens of warnings: > include/linux/gfp.h:281:41: warning: > odd constant _Bool cast (40 becomes 1) > > Use "!!" to explicitly convert the result to bool range. > ---

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-26 Thread Al Viro
On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > running sparse on drivers/staging/lustre results in dozens of warnings: > include/linux/gfp.h:281:41: warning: > odd constant _Bool cast (40 becomes 1) > > Use "!!" to explicitly convert the result to bool range. ... and the

[PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-26 Thread Joshua Clayton
running sparse on drivers/staging/lustre results in dozens of warnings: include/linux/gfp.h:281:41: warning: odd constant _Bool cast (40 becomes 1) Use "!!" to explicitly convert the result to bool range. --- include/linux/gfp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-26 Thread Al Viro
On Sat, Dec 26, 2015 at 09:12:42PM -0800, Joshua Clayton wrote: > running sparse on drivers/staging/lustre results in dozens of warnings: > include/linux/gfp.h:281:41: warning: > odd constant _Bool cast (40 becomes 1) > > Use "!!" to explicitly convert the result to bool range. ... and the

[PATCH] mm: fix noisy sparse warning in LIBCFS_ALLOC_PRE()

2015-12-26 Thread Joshua Clayton
running sparse on drivers/staging/lustre results in dozens of warnings: include/linux/gfp.h:281:41: warning: odd constant _Bool cast (40 becomes 1) Use "!!" to explicitly convert the result to bool range. --- include/linux/gfp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff