Commit 1df84c93 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nathan Scott

[XFS] Mark some lookup tables const. Thanks to Arjan van de Ven for

spotting these.

SGI-PV: 946028
SGI-Modid: xfs-linux-melb:xfs-kern:202617a
Signed-off-by: default avatarChristoph Hellwig <hch@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 1661dc8e
...@@ -34,7 +34,7 @@ xfs_read_xfsstats( ...@@ -34,7 +34,7 @@ xfs_read_xfsstats(
__uint64_t xs_write_bytes = 0; __uint64_t xs_write_bytes = 0;
__uint64_t xs_read_bytes = 0; __uint64_t xs_read_bytes = 0;
static struct xstats_entry { static const struct xstats_entry {
char *desc; char *desc;
int endpoint; int endpoint;
} xstats[] = { } xstats[] = {
......
...@@ -27,7 +27,7 @@ static DEFINE_SPINLOCK(xfs_err_lock); ...@@ -27,7 +27,7 @@ static DEFINE_SPINLOCK(xfs_err_lock);
/* Translate from CE_FOO to KERN_FOO, err_level(CE_FOO) == KERN_FOO */ /* Translate from CE_FOO to KERN_FOO, err_level(CE_FOO) == KERN_FOO */
#define XFS_MAX_ERR_LEVEL 7 #define XFS_MAX_ERR_LEVEL 7
#define XFS_ERR_MASK ((1 << 3) - 1) #define XFS_ERR_MASK ((1 << 3) - 1)
static char *err_level[XFS_MAX_ERR_LEVEL+1] = static const char * const err_level[XFS_MAX_ERR_LEVEL+1] =
{KERN_EMERG, KERN_ALERT, KERN_CRIT, {KERN_EMERG, KERN_ALERT, KERN_CRIT,
KERN_ERR, KERN_WARNING, KERN_NOTICE, KERN_ERR, KERN_WARNING, KERN_NOTICE,
KERN_INFO, KERN_DEBUG}; KERN_INFO, KERN_DEBUG};
......
...@@ -51,7 +51,7 @@ STATIC int xfs_uuid_mount(xfs_mount_t *); ...@@ -51,7 +51,7 @@ STATIC int xfs_uuid_mount(xfs_mount_t *);
STATIC void xfs_uuid_unmount(xfs_mount_t *mp); STATIC void xfs_uuid_unmount(xfs_mount_t *mp);
STATIC void xfs_unmountfs_wait(xfs_mount_t *); STATIC void xfs_unmountfs_wait(xfs_mount_t *);
static struct { static const struct {
short offset; short offset;
short type; /* 0 = integer short type; /* 0 = integer
* 1 = binary / string (no translation) * 1 = binary / string (no translation)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment