aboutsummaryrefslogtreecommitdiffstats
path: root/.checkpatch.conf
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-06 19:00:01 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-25 20:04:38 +0200
commit8b7a66fe5f703b4432f6f11a2b0135d7aec8d805 (patch)
tree901882c954b0a70d789e877bbe881e41a38d8e70 /.checkpatch.conf
parent82c1658cf5e3daac8aae73776235c4ca91d2f0e4 (diff)
downloadhardware_replicant_libsamsung-ipc-8b7a66fe5f703b4432f6f11a2b0135d7aec8d805.tar.gz
hardware_replicant_libsamsung-ipc-8b7a66fe5f703b4432f6f11a2b0135d7aec8d805.tar.bz2
hardware_replicant_libsamsung-ipc-8b7a66fe5f703b4432f6f11a2b0135d7aec8d805.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> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Diffstat (limited to '.checkpatch.conf')
-rw-r--r--.checkpatch.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf
new file mode 100644
index 0000000..32625b5
--- /dev/null
+++ b/.checkpatch.conf
@@ -0,0 +1,16 @@
+# libsamsung-ipc is not Linux. Make checkpatch.pl to not expect a Linux tree.
+--no-tree
+
+# libsamsung-ipc doesn't have SPDX tags, and we would need to do some research
+# to find out if using SPDX in libsamsung-ipc 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