Re: [PATCH] bcache: Zero initialize bucket in bch_allocator_thread

2019-03-22 Thread Arnd Bergmann
On Fri, Mar 8, 2019 at 3:11 AM Coly Li wrote: > On 2019/3/8 6:10 上午, Nathan Chancellor wrote: > > When building with -Wsometimes-uninitialized, Clang warns: > > > > drivers/md/bcache/alloc.c:333:4: warning: variable 'bucket' is used > > uninitialized whenever 'if' condition is false > >

Re: [PATCH] bcache: Zero initialize bucket in bch_allocator_thread

2019-03-07 Thread Coly Li
On 2019/3/8 6:10 上午, Nathan Chancellor wrote: > When building with -Wsometimes-uninitialized, Clang warns: > > drivers/md/bcache/alloc.c:333:4: warning: variable 'bucket' is used > uninitialized whenever 'if' condition is false > [-Wsometimes-uninitialized] > > fifo_pop expands to a conditional

[PATCH] bcache: Zero initialize bucket in bch_allocator_thread

2019-03-07 Thread Nathan Chancellor
When building with -Wsometimes-uninitialized, Clang warns: drivers/md/bcache/alloc.c:333:4: warning: variable 'bucket' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] fifo_pop expands to a conditional depending on '!fifo_empty(...)', which is the same condition