xref: /linux/arch/powerpc/tools/checkpatch.sh (revision 0b8061c340b643e01da431dd60c75a41bb1d31ec)
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
7script_base=$(realpath $(dirname $0))
8
9exec $script_base/../../../scripts/checkpatch.pl \
10	--subjective \
11	--no-summary \
12	--show-types \
13	--ignore ARCH_INCLUDE_LINUX \
14	--ignore BIT_MACRO \
15	--ignore COMPARISON_TO_NULL \
16	--ignore EMAIL_SUBJECT \
17	--ignore FILE_PATH_CHANGES \
18	--ignore GLOBAL_INITIALISERS \
19	--ignore LINE_SPACING \
20	--ignore MULTIPLE_ASSIGNMENTS \
21	--ignore DT_SPLIT_BINDING_PATCH \
22	$@
23