xfs: Remove incorrect use of '&'
PATCH 1/1 xfs: Remove incorrect use of '&'
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").
--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_healthmon.c +1 -1
@@ -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; }
Signature · 1 line
2.55.0
Quoted 17 lines · Alejandro Colomar
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 <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_healthmon.c +0
-0
fs/xfs/xfs_healthmon.c xfs_healthmon_validate( · line 1066
Quoted 7 lines
fs/xfs/xfs_healthmon.c +1
-1@@ -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;
Quoted 4 lines
fs/xfs/xfs_healthmon.c +0
-0}Signature · 1 line
2.55.0
Hi Carlos,
Quoted 16 lines
Date: 2026-11-25 18:38:11+0100
From: Carlos Maiolino <[email protected]>Quoted 12 lines · Alejandro Colomar
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 <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
fs/xfs/xfs_healthmon.c xfs_healthmon_validate( · line 1066
Quoted 12 lines
fs/xfs/xfs_healthmon.c +1
-1@@ -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;Reviewed-by Carlos Maiolino <[email protected]>
Thanks! Will you take the patch?
Cheers,
Alex
Quoted 7 lines
Quoted 5 lines
fs/xfs/xfs_healthmon.c +0
-0}Signature · 1 line
2.55.0
Signature · 1 line
<https://www.alejandro-colomar.es>
Carlos Maiolino
maintainerQuoted 33 lines · Alejandro Colomar
Hi Carlos,
Quoted 16 lines
Date: 2026-11-25 18:38:11+0100
From: Carlos Maiolino <[email protected]>Quoted 12 lines · Alejandro Colomar
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 <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
fs/xfs/xfs_healthmon.c xfs_healthmon_validate( · line 1066
Quoted 12 lines
fs/xfs/xfs_healthmon.c +1
-1@@ -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;Reviewed-by Carlos Maiolino <[email protected]>
Quoted 1 line
Thanks! Will you take the patch?
Yes I will
Quoted 15 lines
Cheers,
AlexQuoted 7 lines
Quoted 5 lines
fs/xfs/xfs_healthmon.c +0
-0}Signature · 1 line
2.55.0Signature · 1 line
<https://www.alejandro-colomar.es>
Quoted 4 lines · Alejandro Colomar
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,
Quoted 20 lines
Cc Darrick J. Wong <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_healthmon.c +1
-1@@ -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; }
Hi Eric,
Quoted 6 lines
Date: 2026-11-25 11:43:00-0600
From: Eric Sandeen <[email protected]>Quoted 2 lines · Alejandro Colomar
We want to pass the character array, not a pointer to it.
Quoted 8 lines
Quoted 2 lines
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")
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
Quoted 22 lines
Quoted 21 lines
Cc Darrick J. Wong <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_healthmon.c +1
-1@@ -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; }
Signature · 1 line
<https://www.alejandro-colomar.es>
Quoted 21 lines · Alejandro Colomar
Hi Eric,
Quoted 6 lines
Date: 2026-11-25 11:43:00-0600
From: Eric Sandeen <[email protected]>Quoted 2 lines · Alejandro Colomar
We want to pass the character array, not a pointer to it.
Quoted 8 lines
Quoted 2 lines
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")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.
Quoted 5 lines
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.
yeah, fair enough. cem mentioned this too. Sorry for the noise :)
-Eric
Quoted 27 lines
Cheers,
AlexQuoted 22 lines
Quoted 21 lines
Cc Darrick J. Wong <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- fs/xfs/xfs_healthmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_healthmon.c +1
-1@@ -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; }
Quoted 6 lines · Alejandro Colomar
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").
Applied to for-next, thanks!
[1/1] xfs: Remove incorrect use of '&'
commit: 58de428557082dabdeaa1e1809766236f8e9d6c3
Best regards,
Signature · 1 line
Carlos Maiolino <[email protected]>