Skip to contentSkip to conversation

linux-next: build warning after merge of the btrfs tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Feb 23, 2020 – Feb 24, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the btrfs tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

fs/btrfs/check-integrity.c: In function 'btrfsic_process_superblock_dev_mirror':
fs/btrfs/check-integrity.c:916:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

  916 |  return ret;
      |         ^~~

Introduced by commit

5a03d907a555 ("btrfs: remove buffer_heads form super block mirror integrity checking")

I think this is not a false positive since ret is only assigned is a "goto out" is executed.

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

Hi all,

After merging the btrfs tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

fs/btrfs/check-integrity.c: In function 'btrfsic_process_superblock_dev_mirror':
fs/btrfs/check-integrity.c:916:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

  916 |  return ret;
      |         ^~~
Quoted 6 lines

Introduced by commit

5a03d907a555 ("btrfs: remove buffer_heads form super block mirror integrity checking")

I think this is not a false positive since ret is only assigned is a "goto out" is executed.

Yes that sounds correct, will be fixed in next update, thanks.