]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: disable printf ext checks in checkpatch
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 5 Jan 2022 18:51:19 +0000 (19:51 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 14 Jan 2022 08:18:25 +0000 (09:18 +0100)
checkpatch.pl has a hardcoded list of printf extensions supported... by
the Linux kernel.  This happens to have covered the ones we have in FRR
so far, but `%pPA` isn't on the list and others may not be either.

Since we have the frr-format GCC plugin (and CI runs that on Debian 11)
we don't really need these checks in checkpatch.pl.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tools/checkpatch.pl

index d2eb20ce5b7fc8c54aab9c0aaa971326029587ff..db6460f3437c8741ba1b2bbb2507cbee0eacb57a 100755 (executable)
@@ -5789,7 +5789,7 @@ sub process {
                }
 
                # check for vsprintf extension %p<foo> misuses
-               if ($^V && $^V ge 5.10.0 &&
+               if (0 && $^V && $^V ge 5.10.0 &&
                    defined $stat &&
                    $stat =~ /^\+(?![^\{]*\{\s*).*\b(\w+)\s*\(.*$String\s*,/s &&
                    $1 !~ /^_*volatile_*$/) {