Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc: Add a checkpatch wrapper with our preferred settings

This makes it easy to run checkpatch with settings that I like.

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 <ruscur@russell.cc>

+22
+22
arch/powerpc/tools/checkpatch.sh
··· 1 + #!/bin/bash 2 + # SPDX-License-Identifier: GPL-2.0+ 3 + # Copyright 2018, Michael Ellerman, IBM Corporation. 4 + # 5 + # Wrapper around checkpatch that uses our preferred settings 6 + 7 + script_base=$(realpath $(dirname $0)) 8 + 9 + exec $script_base/../../../scripts/checkpatch.pl \ 10 + --subjective \ 11 + --no-summary \ 12 + --max-line-length=90 \ 13 + --show-types \ 14 + --ignore ARCH_INCLUDE_LINUX \ 15 + --ignore BIT_MACRO \ 16 + --ignore COMPARISON_TO_NULL \ 17 + --ignore EMAIL_SUBJECT \ 18 + --ignore FILE_PATH_CHANGES \ 19 + --ignore GLOBAL_INITIALISERS \ 20 + --ignore LINE_SPACING \ 21 + --ignore MULTIPLE_ASSIGNMENTS \ 22 + $@