* [PATCH] xfs: constify xfs_errortag_random_default
@ 2025-09-19 13:14 Christoph Hellwig
2025-09-19 16:15 ` Carlos Maiolino
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2025-09-19 13:14 UTC (permalink / raw)
To: cem; +Cc: linux-xfs, Darrick J. Wong
This table is never modified, so mark it const.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
---
Resending standalone because it got lost in the errtag cleanup
series for the last resend that now is in the next-merge branch.
fs/xfs/xfs_error.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c
index ac895cd2bc0a..39830b252ac8 100644
--- a/fs/xfs/xfs_error.c
+++ b/fs/xfs/xfs_error.c
@@ -19,7 +19,7 @@
#define XFS_ERRTAG(_tag, _name, _default) \
[XFS_ERRTAG_##_tag] = (_default),
#include "xfs_errortag.h"
-static unsigned int xfs_errortag_random_default[] = { XFS_ERRTAGS };
+static const unsigned int xfs_errortag_random_default[] = { XFS_ERRTAGS };
#undef XFS_ERRTAG
struct xfs_errortag_attr {
--
2.47.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs: constify xfs_errortag_random_default
2025-09-19 13:14 [PATCH] xfs: constify xfs_errortag_random_default Christoph Hellwig
@ 2025-09-19 16:15 ` Carlos Maiolino
0 siblings, 0 replies; 2+ messages in thread
From: Carlos Maiolino @ 2025-09-19 16:15 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs, Darrick J. Wong
On Fri, 19 Sep 2025 06:14:11 -0700, Christoph Hellwig wrote:
> This table is never modified, so mark it const.
>
>
Applied to for-next, thanks!
[1/1] xfs: constify xfs_errortag_random_default
commit: 3c54e6027f14c4f54be5508af748f6cc2fd72f89
Best regards,
--
Carlos Maiolino <cem@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-19 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19 13:14 [PATCH] xfs: constify xfs_errortag_random_default Christoph Hellwig
2025-09-19 16:15 ` Carlos Maiolino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).