Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Jerome Forissier <[email protected]> Reviewed-by: Jens Wiklander <[email protected]>
- Loading branch information