xfs: constify xfs_errortag_random_default
PATCH 1/1 xfs: constify xfs_errortag_random_default
This table is never modified, so mark it const.
Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by "Darrick J. Wong" <[email protected]>
---
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
@@ -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_ERRTAGstruct xfs_errortag_attr {
Signature · 1 line
2.47.2
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]>