Skip to contentSkip to conversation

linux-next: build warning after merge of the device-mapper tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Feb 20, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the device-mapper tree, today's linux-next build (powerpc_ppc64_defconfig) produced this warning:

In file included from include/linux/blkdev.h:21,

                 from include/linux/blk-mq.h:5,
                 from drivers/md/dm-core.h:14,
                 from drivers/md/dm.c:8:

drivers/md/dm.c: In function 'dec_pending':
include/linux/bio.h:626:15: warning: 'bio' may be used uninitialized in this function [-Wmaybe-uninitialized]
bio->bi_next = bl->head;
~~~~~~~~~~~~~^~~~~~~~~~
drivers/md/dm.c:930:14: note: 'bio' was declared here

  struct bio *bio;
              ^~~

Introduced by commit

58c66b86cfe7 ("dm: improve noclone_endio() to support multipath target")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi all,

After merging the device-mapper tree, today's linux-next build (powerpc_ppc64_defconfig) produced this warning:

In file included from include/linux/blkdev.h:21,

                 from include/linux/blk-mq.h:5,
                 from drivers/md/dm-core.h:14,
                 from drivers/md/dm.c:8:

drivers/md/dm.c: In function 'dec_pending':
include/linux/bio.h:626:15: warning: 'bio' may be used uninitialized in this function [-Wmaybe-uninitialized]
bio->bi_next = bl->head;
~~~~~~~~~~~~~^~~~~~~~~~
drivers/md/dm.c:930:14: note: 'bio' was declared here

Quoted 6 lines
  struct bio *bio;
              ^~~

Introduced by commit

58c66b86cfe7 ("dm: improve noclone_endio() to support multipath target")

Thanks, I've fixed it up.

Mike