sof/.github/workflows/SPDX-README.md

683 B

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 //

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

References:

Start .h files like this:

/* SPDX-License-Identifier: ... */
/*
 * Copyright(c) ...
 *
 * Author: ...
 */

Start .c files like this:

// SPDX-License-Identifier: ...
/*
 * Copyright(c) ...
 *
 * Author: ...
 */