From 86867d124068b56f47e04bb7625bfaa98df04a88 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 4 Mar 2026 19:04:26 +0100 Subject: [PATCH] coccinelle: ignore our own BPF programs Since they don't have access to systemd code, so we can't use our custom functions/macros in them anyway. --- coccinelle/run-coccinelle.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index ecefbf5302d..61e226e3338 100755 --- a/coccinelle/run-coccinelle.sh +++ b/coccinelle/run-coccinelle.sh @@ -9,6 +9,8 @@ EXCLUDED_PATHS=( # Symlinked to test-bus-vtable-cc.cc, which causes issues with the IN_SET macro "src/libsystemd/sd-bus/test-bus-vtable.c" "src/libsystemd/sd-journal/lookup3.c" + # Our BPF programs don't have access to systemd stuff + "src/network/bpf/*" # Ignore man examples, as they redefine some macros we use internally, which makes Coccinelle complain # and ignore code that tries to use the redefined stuff "man/*"