From a8d259939b881ab76a03495eabae17c4ec6e7ef5 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 9 Oct 2017 10:15:13 -0400 Subject: [PATCH] checkpatch: define typedefsfile to deal with a few false positives checkpatch expects typedefs to be suffixed with _t and has different rules when typedefs are being used as arguments of a function. This seems to be a known issue and defining typedefs in a file resolves this issue. Signed-off-by: Anas Nashif --- .checkpatch.conf | 1 + scripts/checkpatch/typedefsfile | 1 + 2 files changed, 2 insertions(+) create mode 100644 scripts/checkpatch/typedefsfile diff --git a/.checkpatch.conf b/.checkpatch.conf index 21db689b028..8385e1f637c 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -5,6 +5,7 @@ --show-types --max-line-length=80 --min-conf-desc-length=1 +--typedefsfile=scripts/checkpatch/typedefsfile --ignore BRACES --ignore PRINTK_WITHOUT_KERN_LEVEL diff --git a/scripts/checkpatch/typedefsfile b/scripts/checkpatch/typedefsfile new file mode 100644 index 00000000000..901459e084a --- /dev/null +++ b/scripts/checkpatch/typedefsfile @@ -0,0 +1 @@ +mbedtls_pk_context