]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
btrfs-use-printk_get_level-and-printk_skip_level-add-__printf-fix-fallout-checkpatch...
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 21 Jul 2012 00:54:44 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:14 +0000 (13:53 +1000)
Cc: Chris Mason <chris.mason@oracle.com>
WARNING: static const char * array should probably be static const char * const
#95: FILE: fs/btrfs/super.c:170:
+static const char *logtypes[] = {

total: 0 errors, 1 warnings, 115 lines checked

./patches/btrfs-use-printk_get_level-and-printk_skip_level-add-__printf-fix-fallout.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: Chris Mason <chris.mason@oracle.com>
Cc: Joe Perches <joe@perches.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/btrfs/super.c

index d64a735523144d6bea01e26573c568b53f25f259..da377b334edf48a47bc3a620b5a36804c80c665e 100644 (file)
@@ -168,7 +168,7 @@ void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function,
        va_end(args);
 }
 
-static const char *logtypes[] = {
+static const char * const logtypes[] = {
        "emergency",
        "alert",
        "critical",