Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/SPDX-README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Read this section if there are some SPDX warnings above.
Pleasing checkpatch is hard when adding new files because:

- checkpatch wants a different SPDX style for .c versus .h files!
- SOF rejects C99 comments starting with //
- checkpatch requests a different SPDX style for .c versus .h files.
This is because some .h files are included in linker scripts or
assembly code.
- Some SOF reviewers reject C99 comments starting with //

The trick is to keep the SPDX separate. See solution below.
A trick is to keep the SPDX separate, see solution below.

References:
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/license-rules.rst#n71
Expand Down