From c16fc8e2795f8241d0857f7e82e2d169e6f524e3 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Wed, 30 Oct 2024 06:13:28 -0700 Subject: [PATCH] contest: cocci: ignore str_*() helpers We don't care about the use of str_on_off() and such in networking. Signed-off-by: Jakub Kicinski --- contest/tests/cocci-check.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contest/tests/cocci-check.sh b/contest/tests/cocci-check.sh index c8d8b53..1e96adf 100755 --- a/contest/tests/cocci-check.sh +++ b/contest/tests/cocci-check.sh @@ -23,6 +23,9 @@ clean_up_output() { # remove the command lines sed -i '/^\/usr\/local\/bin\/spatch -D report /d' $file + # ignore the str helpers like str_on_off(), we don't care + sed -i '/: opportunity for str_/d' $file + # if files are removed or added cocci will fail in pre- or post- run sed -i '/^EXN: .*No such file or directory/d' $file sed -i '/^EXN: Coccinelle_modules.Common.Timeout /d' $file