Re: [PATCH] xfs: remove unused variable in xchk_stats_estimate_bufsize()
From: Carlos Maiolino
Date: Wed Nov 18 2026 - 03:59:40 EST
On Mon, 16 Nov 2026 09:48:02 +0800, Yiqing Wu wrote:
> The css variable in xchk_stats_estimate_bufsize() is initialized to
> point to the start of the cs_stats array and incremented on every
> iteration of the scan loop, but it is never dereferenced. GCC flags
> this as a dead assignment when building with W=1:
>
> fs/xfs/scrub/stats.c:146:34: warning: variable css set but not used [-Wunused-but-set-variable=]
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: remove unused variable in xchk_stats_estimate_bufsize()
commit: 56b3c41b05ae2fc342ac874757d65482322eb360
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>