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

From: Brian Foster
Date: Tue Jan 26 2021 - 01:21:32 EST


On Mon, Jan 25, 2021 at 09:55:32AM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the xfs tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
>
> fs/xfs/xfs_log.c: In function 'xfs_log_cover':
> fs/xfs/xfs_log.c:1111:16: warning: unused variable 'log' [-Wunused-variable]
> 1111 | struct xlog *log = mp->m_log;
> | ^~~
>
> Introduced by commit
>
> 303591a0a947 ("xfs: cover the log during log quiesce")
>

Oops, patch below. Feel free to apply or squash into the original
commit.

Brian

--- 8< ---