summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-11-24 12:06:42 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2018-11-26 15:54:37 -0800
commit19880e6e5ff3b3574f510cd65b6677998ff08336 (patch)
tree11151439f97bd19c8b7130a251659637d30a5444 /fs/f2fs/f2fs.h
parent0ea295dd853e0879a9a30ab61f923c26be35b902 (diff)
downloadlinux-19880e6e5ff3b3574f510cd65b6677998ff08336.tar.gz
linux-19880e6e5ff3b3574f510cd65b6677998ff08336.tar.bz2
linux-19880e6e5ff3b3574f510cd65b6677998ff08336.zip
f2fs: make "f2fs_fault_name[]" const char *
Those strings are immutable. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index b3fe6803d4c6..c28a9d1cb278 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -67,7 +67,7 @@ struct f2fs_fault_info {
unsigned int inject_type;
};
-extern char *f2fs_fault_name[FAULT_MAX];
+extern const char *f2fs_fault_name[FAULT_MAX];
#define IS_FAULT_SET(fi, type) ((fi)->inject_type & (1 << (type)))
#endif