aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2019-04-26 20:03:00 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2019-04-30 10:13:36 +0200
commit7decbaae19146fafc0a6284463d2292932d29920 (patch)
tree1f07a45a470f962d17effabf2491aa7b678d8128
parente34f6cde14654824c96815874e463fb23f1df315 (diff)
Add TAILQ_ENTRY() to typedefs.checkpatch
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 #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 <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r--typedefs.checkpatch1
1 files changed, 1 insertions, 0 deletions
diff --git a/typedefs.checkpatch b/typedefs.checkpatch
index fa554c26..2cf78345 100644
--- a/typedefs.checkpatch
+++ b/typedefs.checkpatch
@@ -29,5 +29,6 @@ TEE_BigIntFMMContext
TEE_BigIntFMM
TEE_BigInt
TEE_Attribute
+TAILQ_ENTRY\(.*\)
mbedtls_mpi_uint
mbedtls_mpi