Skip to content

Commit

Permalink
Add TAILQ_ENTRY() to typedefs.checkpatch
Browse files Browse the repository at this point in the history
When using BSD queues from <sys/queues.h>, a queue entry is declared
with a macro:

 TAILQ_ENTRY(type) var;

This makes checkpatch.pl unhappy because the type is unknown:

 WARNING: Missing a blank line after declarations
 OP-TEE#52: FILE: core/arch/arm/include/mm/tee_pager.h:32:
 +	struct pgt *pgt;
 +	TAILQ_ENTRY(tee_pager_area) link;

This patch adds a regular expression to typedefs.chackpatch that
matches the macro part, thus fixing the warning.

Signed-off-by: Jerome Forissier <[email protected]>
Reviewed-by: Jens Wiklander <[email protected]>
  • Loading branch information
jforissier committed Apr 30, 2019
1 parent e34f6cd commit 7decbaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typedefs.checkpatch
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ TEE_BigIntFMMContext
TEE_BigIntFMM
TEE_BigInt
TEE_Attribute
TAILQ_ENTRY\(.*\)
mbedtls_mpi_uint
mbedtls_mpi

0 comments on commit 7decbaa

Please sign in to comment.