Skip to content

Commit 3c54e60

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: constify xfs_errortag_random_default
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> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent ff3d909 commit 3c54e60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/xfs_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define XFS_ERRTAG(_tag, _name, _default) \
2020
[XFS_ERRTAG_##_tag] = (_default),
2121
#include "xfs_errortag.h"
22-
static unsigned int xfs_errortag_random_default[] = { XFS_ERRTAGS };
22+
static const unsigned int xfs_errortag_random_default[] = { XFS_ERRTAGS };
2323
#undef XFS_ERRTAG
2424

2525
struct xfs_errortag_attr {

0 commit comments

Comments
 (0)