Searched hist:"44 bdcee6e23f6e8a27188a55cba3e883d7f3a883" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/ |
| H A D | typedefs.checkpatch | 44bdcee6e23f6e8a27188a55cba3e883d7f3a883 Mon Jun 03 11:00:11 UTC 2019 Jens Wiklander <jens.wiklander@linaro.org> Add SLIST_HEAD() and SLIST_ENTRY() to typedefs.checkpatch
When using BSD queues from <sys/queues.h>, a simple list entry is declared with a macro:
SLIST_ENTRY(type) var;
This makes checkpatch.pl unhappy because the type is unknown:
WARNING: Missing a blank line after declarations + struct file *file; + SLIST_ENTRY(load_seg) link;
Checkpatch has the same problem with the macro SLIST_HEAD().
This patch adds a regular expression to typedefs.chackpatch that matches the macro part, thus fixing the warning.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|