From cf91fef57f37000ad4dba7130e688267f97da931 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 27 Mar 2026 11:20:40 +0100 Subject: [PATCH] coccinelle: document why src/libc/ and src/test/ are excluded For some of the directories it makes more sense to keep them excluded from the coccinelle check. Specifically: - libc: compatibility, no asserts or systemd headers yet - test: uses NUL internally to test crashes etc --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d820be416c..e096992088 100644 --- a/meson.build +++ b/meson.build @@ -2981,7 +2981,6 @@ if spatch.found() 'src/core/', 'src/import/', 'src/journal/', - 'src/libc/', 'src/libsystemd/', 'src/libsystemd-network/', 'src/network/', @@ -2989,6 +2988,9 @@ if spatch.found() 'src/nss-systemd/', 'src/resolve/', 'src/shared/', + # libc/ has no assert() or systemd-headers so leave it + 'src/libc/', + # test/ has some deliberate wonky pointers, just leave excluded 'src/test/', ]