Whamcloud - gitweb
LU-6142 misc: declare static chars as const where possible.
[fs/lustre-release.git] / lustre / mdt / mdt_lproc.c
index 7b99d27..81f80f4 100644 (file)
@@ -844,7 +844,7 @@ static ssize_t sync_count_store(struct kobject *kobj, struct attribute *attr,
 }
 LUSTRE_RW_ATTR(sync_count);
 
-static char *dom_open_lock_modes[NUM_DOM_LOCK_ON_OPEN_MODES] = {
+static const char *dom_open_lock_modes[NUM_DOM_LOCK_ON_OPEN_MODES] = {
        [NO_DOM_LOCK_ON_OPEN] = "never",
        [TRYLOCK_DOM_ON_OPEN] = "trylock",
        [ALWAYS_DOM_LOCK_ON_OPEN] = "always",