Skip to content

Commit b30cf95

Browse files
lrgirdwoclaude
andcommitted
.github: check for new unused platform headers and macros
Run scripts/check_platform_headers.py --strict in the codestyle workflow, next to the kernel include check. It fails when a change adds a platform header or macro that nothing uses, and passes for the known ones listed in its baseline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent c5b511c commit b30cf95

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎.github/workflows/codestyle.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@ jobs:
4949
- name: no kernel-only headers in user-space code
5050
# see scripts/check_kernel_includes.py
5151
run: python3 scripts/check_kernel_includes.py --sources --strict
52+
53+
platform-headers:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
57+
with:
58+
filter: 'tree:0'
59+
60+
- name: no new unused platform headers or macros
61+
# see scripts/check_platform_headers.py
62+
run: python3 scripts/check_platform_headers.py --strict

0 commit comments

Comments
 (0)