summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2013-04-18 09:47:17 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2013-04-23 17:18:02 +1000
commitebf82131bee7a0e8855b9eb6ff95c15d75877f2a (patch)
treece4d64cf1482741bac6ea4c089a48a69a33762b0 /mm
parent3e1c8b0beb6399a69573be2c74a6be20db6789eb (diff)
memcg-add-memorypressure_level-events-checkpatch-fixes
WARNING: static const char * array should probably be static const char * const #411: FILE: mm/vmpressure.c:100: +static const char *vmpressure_str_levels[] = { total: 0 errors, 1 warnings, 609 lines checked ./patches/memcg-add-memorypressure_level-events.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Anton Vorontsov <anton.vorontsov@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmpressure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmpressure.c b/mm/vmpressure.c
index ccbdc9eca47d..736a6011c2c8 100644
--- a/mm/vmpressure.c
+++ b/mm/vmpressure.c
@@ -97,7 +97,7 @@ enum vmpressure_levels {
VMPRESSURE_NUM_LEVELS,
};
-static const char *vmpressure_str_levels[] = {
+static const char * const vmpressure_str_levels[] = {
[VMPRESSURE_LOW] = "low",
[VMPRESSURE_MEDIUM] = "medium",
[VMPRESSURE_CRITICAL] = "critical",