From: Josh Triplett Date: Fri, 3 Jan 2014 03:10:18 +0000 (+1100) Subject: checkpatch-add-tests-for-function-pointer-style-misuses-fix X-Git-Tag: next-20140106~2^2~86 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1e661089a75001653ab01372efcdcd944caaddd1;p=karo-tx-linux.git 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 --- 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) {