From: Alejandro Colomar <alx@kernel.org>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: linux-xfs@vger.kernel.org, Carlos Maiolino <cem@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH] xfs: Remove incorrect use of '&'
Date: Wed, 25 Nov 2026 19:10:29 +0100 [thread overview]
Message-ID: <awckBo8FkdsGtb1t@devuan> (raw)
In-Reply-To: <34b824e8-21fc-4271-bd60-29cc8b06a292@sandeen.net>
[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]
Hi Eric,
> Date: 2026-11-25 11:43:00-0600
> From: Eric Sandeen <sandeen@sandeen.net>
>
> On 11/25/26 11:16 AM, Alejandro Colomar wrote:
> > We want to pass the character array, not a pointer to it.
> >
> > This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> > "xfs: start creating infrastructure for health monitoring").
>
>
> So,
>
> Fixes: a48373e7d35a ("xfs: start creating infrastructure for health monitoring")
> Cc: stable@vger.kernel.org
It's unnecessary, because the binary will have the same exact value
passed. It's only a type-system issue, which affects diagnostics etc.,
but doesn't create an actual bug.
I would add the 'Fixes' tag, but without stable@, since it doesn't need
to be backported. I didn't include the 'Fixes' tag because some
maintainers don't want to see them if there's no bug in the binary.
Let me know your preference.
Cheers,
Alex
>
> > Cc: Darrick J. Wong <djwong@kernel.org>
> > Cc: Christoph Hellwig <hch@lst.de>
> > Signed-off-by: Alejandro Colomar <alx@kernel.org>
> > ---
> > fs/xfs/xfs_healthmon.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
> > index 2bdd747f1ead..56d19ffb02b3 100644
> > --- a/fs/xfs/xfs_healthmon.c
> > +++ b/fs/xfs/xfs_healthmon.c
> > @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
> > return false;
> > if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
> > return false;
> > - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
> > + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
> > return false;
> > return true;
> > }
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-11-25 18:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 17:16 [PATCH] xfs: Remove incorrect use of '&' Alejandro Colomar
2026-11-25 17:38 ` Carlos Maiolino
2026-11-25 18:11 ` Alejandro Colomar
2026-11-25 19:00 ` Carlos Maiolino
2026-11-25 17:43 ` Eric Sandeen
2026-11-25 18:10 ` Alejandro Colomar [this message]
2026-11-25 21:42 ` Eric Sandeen
2026-11-26 13:49 ` Carlos Maiolino
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=awckBo8FkdsGtb1t@devuan \
--to=alx@kernel.org \
--cc=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@sandeen.net \
/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