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

From: Stephen Rothwell
Date: Thu May 02 2019 - 20:22:43 EST


Hi David,

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

fs/btrfs/props.c: In function 'inherit_props':
fs/btrfs/props.c:389:4: warning: 'num_bytes' may be used uninitialized in this function [-Wmaybe-uninitialized]
btrfs_block_rsv_release(fs_info, trans->block_rsv,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
num_bytes);
~~~~~~~~~~

Probably introduced by commit

b835a4a3faec ("btrfs: use the existing reserved items for our first prop for inheritance")

Looks like a false positive to me.

--
Cheers,
Stephen Rothwell

Attachment: pgpS8ytf5reHD.pgp
Description: OpenPGP digital signature