From: Carlos Maiolino <cem@kernel.org>
To: Yiqing Wu <wuyiqing@cmss.chinamobile.com>
Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xfs: remove unused variable in xchk_stats_estimate_bufsize()
Date: Wed, 18 Nov 2026 09:58:57 +0100 [thread overview]
Message-ID: <179499233780.5574.6310002190973802227.b4-ty@kernel.org> (raw)
In-Reply-To: <20261116014802.16078-1-wuyiqing@cmss.chinamobile.com>
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@kernel.org>
prev parent reply other threads:[~2026-11-18 8:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 1:48 Yiqing Wu
2026-11-16 6:00 ` Christoph Hellwig
2026-11-18 8:58 ` Carlos Maiolino [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179499233780.5574.6310002190973802227.b4-ty@kernel.org \
--to=cem@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=wuyiqing@cmss.chinamobile.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®