summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-08-11 13:19:56 +0800
committerJens Axboe <axboe@kernel.dk>2018-08-11 15:46:42 -0600
commite1f08f1bc0134c2ebd655fc63ed82e160c123b7b (patch)
treec30ec0e504be1049a9d357e8295626286c03db98 /drivers/md
parent3be11dbab67a3ed28358a950671de9b8e7fb5a02 (diff)
downloadlinux-e1f08f1bc0134c2ebd655fc63ed82e160c123b7b.tar.bz2
bcache: add static const prefix to char * array declarations
This patch declares char * array with const prefix in sysfs.c, which is suggested by checkpatch.pl. Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index f0faaeaec57f..150cf4f4cf74 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -150,7 +150,7 @@ SHOW(__bch_cached_dev)
{
struct cached_dev *dc = container_of(kobj, struct cached_dev,
disk.kobj);
- const char *states[] = { "no cache", "clean", "dirty", "inconsistent" };
+ char const *states[] = { "no cache", "clean", "dirty", "inconsistent" };
int wb = dc->writeback_running;
#define var(stat) (dc->stat)