Skip to contentSkip to conversation

xfs: constify xfs_errortag_random_default

PATCH Applied Christoph Hellwig 2 participants 2 messages Sep 19, 2025 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: constify xfs_errortag_random_default

This table is never modified, so mark it const.

---

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(-)
fs/xfs/xfs_error.c +1 -1
index ac895cd2bc0a..39830b252ac8 100644
@@ -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 {
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Christoph Hellwig

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,

Signature · 1 line
Carlos Maiolino <[email protected]>