Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Jan 23, 2019 – Jan 28, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi David,

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

fs/btrfs/relocation.c: In function 'insert_dirty_subv':
fs/btrfs/relocation.c:2138:6: warning: unused variable 'root_objectid' [-Wunused-variable]

  u64 root_objectid = root->root_key.objectid;
      ^~~~~~~~~~~~~

Introduced by commit

7b837199c581 ("btrfs: relocation: Delay reloc tree deletion after merge_reloc_roots()")

Presumably the ASSERT is compiled out in this configuration.

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

Hi David,

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

fs/btrfs/relocation.c: In function 'insert_dirty_subv':
fs/btrfs/relocation.c:2138:6: warning: unused variable 'root_objectid' [-Wunused-variable]

Quoted 8 lines
  u64 root_objectid = root->root_key.objectid;
      ^~~~~~~~~~~~~

Introduced by commit

7b837199c581 ("btrfs: relocation: Delay reloc tree deletion after merge_reloc_roots()")

Presumably the ASSERT is compiled out in this configuration.

Agreed, thanks for the report. I'll drop the temporary variable.