From: Coly Li Date: Sat, 11 Aug 2018 05:19:56 +0000 (+0800) Subject: bcache: add static const prefix to char * array declarations X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e1f08f1bc0134c2ebd655fc63ed82e160c123b7b;p=linux.git 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 Reviewed-by: Shenghui Wang Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index f0faaeaec57f1..150cf4f4cf749 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)