diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2024-06-21 11:32:05 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2024-06-21 11:32:42 +0200 |
commit | f9d4d1626d47944715eb522af38909cc90a1d53c (patch) | |
tree | 666809a2ca0cd69b1362be934ac066a3bfc92fc1 /tools | |
parent | pimd: prepare NHT for tracking BSM C-RPs (diff) | |
download | frr-f9d4d1626d47944715eb522af38909cc90a1d53c.tar.xz frr-f9d4d1626d47944715eb522af38909cc90a1d53c.zip |
tools/checkpatch: accept pim_* typedefs
pimd uses "v4/v6 dispatch" typedefs. Don't complain about those in
checkpatch.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl index f52f1a161..3e7abeda3 100755 --- a/tools/checkpatch.pl +++ b/tools/checkpatch.pl @@ -4668,6 +4668,7 @@ sub process { # check for new typedefs, only function parameters and sparse annotations # make sense. if ($line =~ /\btypedef\s/ && + $line !~ /\btypedef.*\s(pim_[^\s]+|[^\s]+_pim)\s*;/ && $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ && $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && $line !~ /\b$typeTypedefs\b/ && |