From 7decbaae19146fafc0a6284463d2292932d29920 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Fri, 26 Apr 2019 20:03:00 +0200 Subject: [PATCH] Add TAILQ_ENTRY() to typedefs.checkpatch When using BSD queues from , 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 Reviewed-by: Jens Wiklander --- typedefs.checkpatch | 1 + 1 file changed, 1 insertion(+) diff --git a/typedefs.checkpatch b/typedefs.checkpatch index fa554c26afa..2cf78345a55 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