From 1e661089a75001653ab01372efcdcd944caaddd1 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 3 Jan 2014 14:10:18 +1100 Subject: [PATCH] checkpatch-add-tests-for-function-pointer-style-misuses-fix Fix an ambiguity in one warning message and a copy/paste problem in another. Signed-off-by: Josh Triplett Acked-by: Joe Perches Signed-off-by: Andrew Morton --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 742ffec30ea7..44c6f40f415e 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2827,7 +2827,7 @@ sub process { if (defined $pre_pointer_space && $pre_pointer_space =~ /^\s/) { WARN("SPACING", - "Unnecessary space after function pointer open parenthesis\n" . $herecurr); + "Unnecessary space between open parenthesis and '*' in function pointer declaration\n" . $herecurr); } # unnecessary space "type (* funcptr)(args...)" @@ -2848,7 +2848,7 @@ sub process { if (defined $pre_args_space && $pre_args_space =~ /^\s/) { WARN("SPACING", - "Unnecessary space before function pointer name\n" . $herecurr); + "Unnecessary space before function pointer argument list\n" . $herecurr); } if (show_type("SPACING") && $fix) { -- 2.39.5