]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[XFS] Mark some lookup tables const. Thanks to Arjan van de Ven for
authorChristoph Hellwig <hch@sgi.com>
Wed, 11 Jan 2006 04:29:52 +0000 (15:29 +1100)
committerNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:29:52 +0000 (15:29 +1100)
spotting these.

SGI-PV: 946028
SGI-Modid: xfs-linux-melb:xfs-kern:202617a

Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/xfs_stats.c
fs/xfs/support/debug.c
fs/xfs/xfs_mount.c

index 6c40a74be7c8d5f3eb206782412c3c36cea549e6..8955720a2c6b0685bde93bdfeff24e1006355771 100644 (file)
@@ -34,7 +34,7 @@ xfs_read_xfsstats(
        __uint64_t      xs_write_bytes = 0;
        __uint64_t      xs_read_bytes = 0;
 
-       static struct xstats_entry {
+       static const struct xstats_entry {
                char    *desc;
                int     endpoint;
        } xstats[] = {
index bb6dc91ea261390a426f61ba958f214c34394fa6..e281c3a71ad018aacf0a621e9bc4ae2cfcaeeb67 100644 (file)
@@ -27,7 +27,7 @@ static DEFINE_SPINLOCK(xfs_err_lock);
 /* Translate from CE_FOO to KERN_FOO, err_level(CE_FOO) == KERN_FOO */
 #define XFS_MAX_ERR_LEVEL      7
 #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_ERR, KERN_WARNING, KERN_NOTICE,
                                         KERN_INFO, KERN_DEBUG};
index 303af86739bf724956d8f15cc55652b9acefebdf..f9754896cd3b175094e9ed20cb4dd42d0d8a08ca 100644 (file)
@@ -51,7 +51,7 @@ STATIC int    xfs_uuid_mount(xfs_mount_t *);
 STATIC void    xfs_uuid_unmount(xfs_mount_t *mp);
 STATIC void    xfs_unmountfs_wait(xfs_mount_t *);
 
-static struct {
+static const struct {
     short offset;
     short type;     /* 0 = integer
                * 1 = binary / string (no translation)