scripts/checkpatch.pl: add warnings for static char that could be static const char
authorJoe Perches <joe@perches.com>
Tue, 26 Oct 2010 21:23:20 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:21 +0000 (16:52 -0700)
commitcb710eca6820493add0ddd3d7e8e3ee53f2b6e57
tree752ca452a0d2fa3f9cb085c4f4e050a5e657f5f5
parent267ad8f42644c2fa4ff6c2e7596d2b02c7397c85
scripts/checkpatch.pl: add warnings for static char that could be static const char

Add warnings for possible missing const uses of
static char foo[] = "bar"
    that could be
static const char foo[] = "bar"
and
static const char *foo[] = {"bar", "baz"}
    that could be
static const char * const foo[] = {"bar", "baz"}

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl