diff options
author | Joe Perches <joe@perches.com> | 2010-10-26 23:23:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 01:52:21 +0200 |
commit | cb710eca6820493add0ddd3d7e8e3ee53f2b6e57 (patch) | |
tree | 752ca452a0d2fa3f9cb085c4f4e050a5e657f5f5 /lib/bitmap.c | |
parent | checkpatch: version 0.31 (diff) | |
download | linux-cb710eca6820493add0ddd3d7e8e3ee53f2b6e57.tar.xz linux-cb710eca6820493add0ddd3d7e8e3ee53f2b6e57.zip |
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 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions