Skip to content

Commit f6ec332

Browse files
ldtsjforissier
authored andcommitted
Add STAILQ_HEAD() and STAILQ_ENTRY() to typedefs.checkpatch
When using BSD queues from <sys/queues.h>, 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 <jorge@foundries.io> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 32692b3 commit f6ec332

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

typedefs.checkpatch

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ TEE_BigIntFMM
3030
TEE_BigInt
3131
TEE_Attribute
3232
TAILQ_ENTRY\(.*\)
33+
STAILQ_HEAD\(.*\)
34+
STAILQ_ENTRY\(.*\)
3335
SLIST_HEAD\(.*\)
3436
SLIST_ENTRY\(.*\)
3537
mbedtls_mpi_uint

0 commit comments

Comments
 (0)