@@ -127,7 +127,7 @@ enum cksum_types obd_cksum_type_select(const char *obd_name,
/* Checksum algorithm names. Must be defined in the same order as the
* OBD_CKSUM_* flags.
*/
-#define DECLARE_CKSUM_NAME const char *cksum_name[] = {"crc32", "adler", \
+#define DECLARE_CKSUM_NAME const char *const cksum_name[] = {"crc32", "adler", \
"crc32c", "reserved", "t10ip512", "t10ip4K", "t10crc512", "t10crc4K"}
typedef u16 (obd_dif_csum_fn) (void *, unsigned int);
@@ -995,7 +995,7 @@ static ssize_t default_easize_store(struct kobject *kobj,
static int ll_sbi_flags_seq_show(struct seq_file *m, void *v)
{
- const char *str[] = LL_SBI_FLAGS;
+ const char *const str[] = LL_SBI_FLAGS;
struct super_block *sb = m->private;
int flags = ll_s2sbi(sb)->ll_flags;
int i = 0;
@@ -1213,7 +1213,7 @@ enum changelog_rec_type {
static inline const char *changelog_type2str(int type)
{
- static const char *changelog_str[] = {
+ static const char *const changelog_str[] = {
"MARK", "CREAT", "MKDIR", "HLINK", "SLINK", "MKNOD", "UNLNK",
"RMDIR", "RENME", "RNMTO", "OPEN", "CLOSE", "LYOUT", "TRUNC",
"SATTR", "XATTR", "HSM", "MTIME", "CTIME", "ATIME", "",