bcache: add static const prefix to char * array declarations
authorColy Li <colyli@suse.de>
Sat, 11 Aug 2018 05:19:56 +0000 (13:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Aug 2018 21:46:42 +0000 (15:46 -0600)
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>
drivers/md/bcache/sysfs.c

index f0faaea..150cf4f 100644 (file)
@@ -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)