Searched hist:"5014 c311" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/block/ |
H A D | blk-merge.c | 5014c311 Wed Sep 02 17:46:02 CDT 2015 Jens Axboe <axboe@fb.com> block: fix bogus compiler warnings in blk-merge.c
The compiler can't figure out that bvprv is initialized whenever 'prev' is set to 1 as well. Use a pointer to bvprv instead, setting it to NULL initially, and get rid of the 'prev' tracking. This dumbs it down enough that gcc is happy.
Signed-off-by: Jens Axboe <axboe@fb.com> 5014c311 Wed Sep 02 17:46:02 CDT 2015 Jens Axboe <axboe@fb.com> block: fix bogus compiler warnings in blk-merge.c The compiler can't figure out that bvprv is initialized whenever 'prev' is set to 1 as well. Use a pointer to bvprv instead, setting it to NULL initially, and get rid of the 'prev' tracking. This dumbs it down enough that gcc is happy. Signed-off-by: Jens Axboe <axboe@fb.com>
|