diff options
author | Joe Perches <joe@perches.com> | 2010-10-26 21:23:20 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 23:52:21 (GMT) |
commit | cb710eca6820493add0ddd3d7e8e3ee53f2b6e57 (patch) | |
tree | 752ca452a0d2fa3f9cb085c4f4e050a5e657f5f5 /include | |
parent | 267ad8f42644c2fa4ff6c2e7596d2b02c7397c85 (diff) | |
download | linux-fsl-qoriq-cb710eca6820493add0ddd3d7e8e3ee53f2b6e57.tar.xz |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions