From 0087a5216b0abc144b5ff7ba73bef2c1c8ec1cf8 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 21 Jul 2012 10:54:44 +1000 Subject: [PATCH] btrfs-use-printk_get_level-and-printk_skip_level-add-__printf-fix-fallout-checkpatch-fixes Cc: Chris Mason 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 Cc: Joe Perches Cc: Kay Sievers Signed-off-by: Andrew Morton --- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index d64a73552314..da377b334edf 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -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", -- 2.39.5