From 176b254cb97c8d11e68d3ad8cce8f9e25d1d0189 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 5 Jan 2022 19:51:19 +0100 Subject: [PATCH] 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 --- tools/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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_*$/) { -- 2.39.5