staging: lustre: obdclass: Add 'const' to char* array

Replace 'const char*' arrays with 'const char * const'
since the values in the arrays are not changed.
Issues found with checkpatch.pl

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dafna Hirschfeld 2018-03-04 22:09:33 +02:00 committed by Greg Kroah-Hartman
parent e4dea99bfa
commit 57c1940286
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ EXPORT_SYMBOL(cl_lock_release);
const char *cl_lock_mode_name(const enum cl_lock_mode mode) const char *cl_lock_mode_name(const enum cl_lock_mode mode)
{ {
static const char *names[] = { static const char * const names[] = {
[CLM_READ] = "R", [CLM_READ] = "R",
[CLM_WRITE] = "W", [CLM_WRITE] = "W",
[CLM_GROUP] = "G" [CLM_GROUP] = "G"

View File

@ -495,7 +495,7 @@ static struct cache_stats cl_env_stats = {
int cl_site_stats_print(const struct cl_site *site, struct seq_file *m) int cl_site_stats_print(const struct cl_site *site, struct seq_file *m)
{ {
size_t i; size_t i;
static const char *pstate[] = { static const char * const pstate[] = {
[CPS_CACHED] = "c", [CPS_CACHED] = "c",
[CPS_OWNED] = "o", [CPS_OWNED] = "o",
[CPS_PAGEOUT] = "w", [CPS_PAGEOUT] = "w",