diff options
author | 2010-10-26 14:23:20 -0700 | |
---|---|---|
committer | 2010-10-26 16:52:21 -0700 | |
commit | cb710eca6820493add0ddd3d7e8e3ee53f2b6e57 (patch) | |
tree | 752ca452a0d2fa3f9cb085c4f4e050a5e657f5f5 /kernel/resource.c | |
parent | checkpatch: version 0.31 (diff) | |
download | wireguard-linux-cb710eca6820493add0ddd3d7e8e3ee53f2b6e57.tar.xz wireguard-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 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions