diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2017-05-10 10:41:48 +0200 |
---|---|---|
committer | Jerome Forissier <jerome.forissier@linaro.org> | 2017-05-10 17:05:13 +0200 |
commit | 1472c996cca6291b6cbfca2115e9d307759fb43b (patch) | |
tree | ba8e48545a0d7a4fab52c97298b9613898862887 /typedefs.checkpatch | |
parent | ee664c198650618f3621c3110a3c4a5d8fe1f90d (diff) |
Take some GP types into account when running patch check tool
When running checkpatch on the OP-TEE code, for instance during the
Travis checks, it happens that we get false warnings and errors caused
by the use of GlobalPlatform typedefs. In the following example, the
patch introduces pointers to functions returning TEE_Result, but
checkpatch won't accept it as a valid type:
$ ./scripts/checkpatch.sh d776721 | tail -1
total: 1 errors, 5 warnings, 555 lines checked
To address such issues, declare our custom types in a local file
(typedefs.checkpatch) and use the new --typedefsfile option provided by
checkpatch.pl.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'typedefs.checkpatch')
-rw-r--r-- | typedefs.checkpatch | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/typedefs.checkpatch b/typedefs.checkpatch new file mode 100644 index 00000000..ea65adc6 --- /dev/null +++ b/typedefs.checkpatch @@ -0,0 +1,2 @@ +TEE_Result +TEE_UUID |