diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-04-06 19:00:01 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-25 16:00:40 +0100 |
commit | 65e555fbf248f86ae43dd44af8a81315b1ea4b03 (patch) | |
tree | 8b81fbf3b0b4b2cbd323f39544c81d20f4b9e7be /.checkpatch.conf | |
parent | d02d492a113fc36f8a6ab34854608895812b4ef9 (diff) | |
download | hardware_replicant_libsamsung-ril-65e555fbf248f86ae43dd44af8a81315b1ea4b03.tar.gz hardware_replicant_libsamsung-ril-65e555fbf248f86ae43dd44af8a81315b1ea4b03.tar.bz2 hardware_replicant_libsamsung-ril-65e555fbf248f86ae43dd44af8a81315b1ea4b03.zip |
Import checkpatch.pl from Linux v5.6 and configure it.
This will be used to check if the patches match Linux code style.
The configuration is needed because otherwise the this tool
has defaults parameters which are made for Linux.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to '.checkpatch.conf')
-rw-r--r-- | .checkpatch.conf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf new file mode 100644 index 0000000..39c8edd --- /dev/null +++ b/.checkpatch.conf @@ -0,0 +1,16 @@ +# libsamsung-ril is not Linux. Make checkpatch.pl to not expect a Linux tree. +--no-tree + +# libsamsung-ril doesn't have SPDX tags, and we would need to do some research +# to find out if using SPDX in libsamsung-ril is a good thing or not. +--ignore SPDX_LICENSE_TAG + +# Linux introduced shortcuts for compiler attributes in the following commit: +# 82ddcb040570 [PATCH] extend the set of "__attribute__" shortcut macros +# We might want to do the same later on, but for now we'll just ignore the +# warnings until we implement that. +--ignore PREFER_ALIGNED +--ignore PREFER_PACKED +--ignore PREFER_PRINTF +--ignore PREFER_SCANF +--ignore PREFER_SECTION |