From f6ec3329a9a8eb7fc77a0408dc31d9d6e1e813f6 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez-Ortiz Date: Mon, 3 Oct 2022 10:45:38 +0200 Subject: [PATCH] Add STAILQ_HEAD() and STAILQ_ENTRY() to typedefs.checkpatch When using BSD queues from , a singly linked tail queue entry is declared with a macro: STAILQ_ENTRY(type) var; This makes checkpatch.pl unhappy because the type is unknown: WARNING: Missing a blank line after declarations + struct file *file; + STAILQ_ENTRY(load_seg) link; Checkpatch has the same problem with the macro STAILQ_HEAD(). This patch adds a regular expression to typedefs.checkpatch that matches the macro part, thus fixing the warning. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Jerome Forissier Reviewed-by: Jens Wiklander --- typedefs.checkpatch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typedefs.checkpatch b/typedefs.checkpatch index 31341fa52c1..2c96568da58 100644 --- a/typedefs.checkpatch +++ b/typedefs.checkpatch @@ -30,6 +30,8 @@ TEE_BigIntFMM TEE_BigInt TEE_Attribute TAILQ_ENTRY\(.*\) +STAILQ_HEAD\(.*\) +STAILQ_ENTRY\(.*\) SLIST_HEAD\(.*\) SLIST_ENTRY\(.*\) mbedtls_mpi_uint