]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
checkpatch-add-tests-for-function-pointer-style-misuses-fix
authorJosh Triplett <josh@joshtriplett.org>
Fri, 3 Jan 2014 03:10:18 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:18 +0000 (14:10 +1100)
Fix an ambiguity in one warning message and a copy/paste problem in
another.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl

index 742ffec30ea737fc67f9457e0bf0a78cd1dcb32a..44c6f40f415e1911a1ad5713f08b38f4066391c6 100755 (executable)
@@ -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) {