Re: [PATCH] sbitmap: avoid maybe-uninitialized warning

2016-09-19 Thread Omar Sandoval
On Mon, Sep 19, 2016 at 09:22:34AM -0600, Jens Axboe wrote: > On 09/19/2016 09:14 AM, Arnd Bergmann wrote: > > On Monday, September 19, 2016 8:43:12 AM CEST Jens Axboe wrote: > > > On 09/19/2016 06:33 AM, Arnd Bergmann wrote: > > > > The sbitmap code that has just been turned into a library module

Re: [PATCH] sbitmap: avoid maybe-uninitialized warning

2016-09-19 Thread Jens Axboe
On 09/19/2016 09:14 AM, Arnd Bergmann wrote: On Monday, September 19, 2016 8:43:12 AM CEST Jens Axboe wrote: On 09/19/2016 06:33 AM, Arnd Bergmann wrote: The sbitmap code that has just been turned into a library module returns uninitialized data for sbitmap_weight(), as pointed out by gcc when

Re: [PATCH] sbitmap: avoid maybe-uninitialized warning

2016-09-19 Thread Arnd Bergmann
On Monday, September 19, 2016 8:43:12 AM CEST Jens Axboe wrote: > On 09/19/2016 06:33 AM, Arnd Bergmann wrote: > > The sbitmap code that has just been turned into a library module > > returns uninitialized data for sbitmap_weight(), as pointed out by > > gcc when building with -Wmaybe-uninitialized

Re: [PATCH] sbitmap: avoid maybe-uninitialized warning

2016-09-19 Thread Jens Axboe
On 09/19/2016 06:33 AM, Arnd Bergmann wrote: The sbitmap code that has just been turned into a library module returns uninitialized data for sbitmap_weight(), as pointed out by gcc when building with -Wmaybe-uninitialized: lib/sbitmap.c: In function 'sbitmap_weight': lib/sbitmap.c:179:9: error:

[PATCH] sbitmap: avoid maybe-uninitialized warning

2016-09-19 Thread Arnd Bergmann
The sbitmap code that has just been turned into a library module returns uninitialized data for sbitmap_weight(), as pointed out by gcc when building with -Wmaybe-uninitialized: lib/sbitmap.c: In function 'sbitmap_weight': lib/sbitmap.c:179:9: error: 'weight' may be used uninitialized in this func