From a61ba7cef49f0d8f1e8a302c1bdd19189f4f3f24 Mon Sep 17 00:00:00 2001 From: Thomas Richard Date: Fri, 18 Sep 2026 10:48:49 +0200 Subject: [PATCH] kernel_patch_verify: run C tests on header files The kernel-doc, checkincludes.pl and headerdep.pl scripts can also be run on header files. So add header files to the list of C files. Signed-off-by: Thomas Richard --- kernel_patch_verify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel_patch_verify b/kernel_patch_verify index 0bdf00d..de94246 100755 --- a/kernel_patch_verify +++ b/kernel_patch_verify @@ -660,7 +660,7 @@ report_tests_end() { test_patch() { patch=$1 - readarray -t cfiles <<< "$(diffstat -lp1 "$patch"|grep -P '\.c$'|sort)" + readarray -t cfiles <<< "$(diffstat -lp1 "$patch"|grep -P '\.[ch]$'|sort)" readarray -t ofiles <<< "$(diffstat -lp1 "$patch"|grep -P '\.[Sc]$'|sort|sed -e "s/[Sc]$/o/g")" readarray -t yfiles <<< "$(diffstat -lp1 "$patch"|grep -P '\.yaml$'|sort)" readarray -t dfiles <<< "$(diffstat -lp1 "$patch"|grep 'boot/dts'|grep -v 'Makefile'|sort)"