Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH] xfs: Remove incorrect use of '&'
@ 2026-11-25 17:16 Alejandro Colomar
  2026-11-25 17:38 ` Carlos Maiolino
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alejandro Colomar @ 2026-11-25 17:16 UTC (permalink / raw)
  To: linux-xfs, Carlos Maiolino
  Cc: Alejandro Colomar, Darrick J. Wong, Christoph Hellwig

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

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").

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;
 }
-- 
2.55.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-26 13:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-11-25 21:42     ` Eric Sandeen
2026-11-26 13:49 ` Carlos Maiolino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox