diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-05 19:51:19 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-14 09:18:25 +0100 | 
| commit | 176b254cb97c8d11e68d3ad8cce8f9e25d1d0189 (patch) | |
| tree | 3ce7bf85993e95da95541686c2ca138092b4694f /tools/checkpatch.pl | |
| parent | a8057c9db50b4f2d030bcbfd585c54000b7d205a (diff) | |
tools: disable printf ext checks in checkpatch
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>
Diffstat (limited to 'tools/checkpatch.pl')
| -rwxr-xr-x | tools/checkpatch.pl | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl index d2eb20ce5b..db6460f343 100755 --- a/tools/checkpatch.pl +++ b/tools/checkpatch.pl @@ -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_*$/) {  | 
