[PATCH] powerpc: Add a checkpatch wrapper with our preferred settings

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2928d

3 messages, 3 authors, 2018-08-08 · open the first message on its own page

[PATCH] powerpc: Add a checkpatch wrapper with our preferred settings

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-07-24 14:03:58

This makes it easy to run checkpatch with settings that we have agreed
on (bwhahahahah).

Usage is eg:

  $ ./arch/powerpc/tools/checkpatch.sh -g origin/master..

To check all commits since origin/master.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/tools/checkpatch.sh | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 arch/powerpc/tools/checkpatch.sh
diff --git a/arch/powerpc/tools/checkpatch.sh b/arch/powerpc/tools/checkpatch.sh
new file mode 100755
index 000000000000..4c2ac4655e26
--- /dev/null
+++ b/arch/powerpc/tools/checkpatch.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright 2018, Michael Ellerman, IBM Corporation.
+#
+# Wrapper around checkpatch that uses our preferred settings
+
+script_base=$(realpath $(dirname $0))
+
+exec $script_base/../../../scripts/checkpatch.pl \
+	--subjective \
+	--max-line-length=90 \
+	--show-types \
+	--ignore ARCH_INCLUDE_LINUX \
+	--ignore BIT_MACRO \
+	--ignore COMPARISON_TO_NULL \
+	--ignore EMAIL_SUBJECT \
+	--ignore FILE_PATH_CHANGES \
+	--ignore GLOBAL_INITIALISERS \
+	--ignore LINE_SPACING \
+	--ignore MULTIPLE_ASSIGNMENTS \
+	$@
-- 
2.14.1

Re: [PATCH] powerpc: Add a checkpatch wrapper with our preferred settings

From: Russell Currey <hidden>
Date: 2018-07-31 03:19:21

On Wed, 2018-07-25 at 00:03 +1000, Michael Ellerman wrote:
This makes it easy to run checkpatch with settings that we have
agreed
on (bwhahahahah).

Usage is eg:

  $ ./arch/powerpc/tools/checkpatch.sh -g origin/master..

To check all commits since origin/master.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Russell Currey <redacted>

Re: powerpc: Add a checkpatch wrapper with our preferred settings

From: Michael Ellerman <hidden>
Date: 2018-08-08 14:25:53

On Tue, 2018-07-24 at 14:03:46 UTC, Michael Ellerman wrote:
This makes it easy to run checkpatch with settings that we have agreed
on (bwhahahahah).

Usage is eg:

  $ ./arch/powerpc/tools/checkpatch.sh -g origin/master..

To check all commits since origin/master.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Russell Currey <redacted>
Applied to powerpc next.

https://git.kernel.org/powerpc/c/7cd129b4b5370030a5c0b8031a54b2

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help