Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 7, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the xfs tree, today's linux-next build (powerpc_ppc64 defconfig) produced this warning:

fs/xfs/libxfs/xfs_ialloc.c: In function 'xfs_difree_finobt':
fs/xfs/libxfs/xfs_ialloc.c:2032:20: warning: unused variable 'agi' [-Wunused-variable]
2032 | struct xfs_agi *agi = agbp->b_addr;
| ^~~

Not sure how this came about, but somehow DEBUG has been turned off which exposes this.

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

Hi all,

After merging the xfs tree, today's linux-next build (powerpc_ppc64 defconfig) produced this warning:

Quoted 7 lines

fs/xfs/libxfs/xfs_ialloc.c: In function 'xfs_difree_finobt':
fs/xfs/libxfs/xfs_ialloc.c:2032:20: warning: unused variable 'agi' [-Wunused-variable]
2032 | struct xfs_agi *agi = agbp->b_addr;
| ^~~

Not sure how this came about, but somehow DEBUG has been turned off which exposes this.

I think I replaced all the agi->agi_seqno usages in that function with pag->pag_agno and so now the agi structure is only accessed via debug functions. The debug code should now pass perag structures rather than raw AGI structures to check the free inode counts....

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]