Searched hist:f6ec3329a9a8eb7fc77a0408dc31d9d6e1e813f6 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/ |
| H A D | typedefs.checkpatch | f6ec3329a9a8eb7fc77a0408dc31d9d6e1e813f6 Mon Oct 03 08:45:38 UTC 2022 Jorge Ramirez-Ortiz <jorge@foundries.io> 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>
|