Skip to content

Commit c16fc8e

Browse files
committed
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 <[email protected]>
1 parent f08356b commit c16fc8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contest/tests/cocci-check.sh

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ clean_up_output() {
2323
# remove the command lines
2424
sed -i '/^\/usr\/local\/bin\/spatch -D report /d' $file
2525

26+
# ignore the str helpers like str_on_off(), we don't care
27+
sed -i '/: opportunity for str_/d' $file
28+
2629
# if files are removed or added cocci will fail in pre- or post- run
2730
sed -i '/^EXN: .*No such file or directory/d' $file
2831
sed -i '/^EXN: Coccinelle_modules.Common.Timeout /d' $file

0 commit comments

Comments
 (0)