projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3be11db
)
bcache: add static const prefix to char * array declarations
author
Coly Li
<
[email protected]
>
Sat, 11 Aug 2018 05:19:56 +0000
(13:19 +0800)
committer
Jens Axboe
<
[email protected]
>
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 <
[email protected]
>
Reviewed-by: Shenghui Wang <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
drivers/md/bcache/sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/sysfs.c
b/drivers/md/bcache/sysfs.c
index f0faaeaec57f1bb579b4ce70420ca74d5903a4b3..150cf4f4cf749d8725de356f4b56357b2f8a4198 100644
(file)
--- 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);
- c
onst char
*states[] = { "no cache", "clean", "dirty", "inconsistent" };
+ c
har const
*states[] = { "no cache", "clean", "dirty", "inconsistent" };
int wb = dc->writeback_running;
#define var(stat) (dc->stat)