-
Notifications
You must be signed in to change notification settings - Fork 2
/
.checkpatch.conf
33 lines (27 loc) · 910 Bytes
/
.checkpatch.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
# Copyright (c) 2019, Jianshen Liu <jliu120@ucsc.edu>
#
# Configure how the Linux checkpatch script should be invoked in the context of
# this out-of-tree module.
#
# This clarifes the lines indications in the report.
#
# E.g.:
# Without this option, we have the following output:
# #333: FILE: drivers/arm/gic/arm_gic.c:160:
# So we have 2 lines indications (333 and 160), which is confusing.
# We only care about the position in the source file.
#
# With this option, it becomes:
# drivers/arm/gic/arm_gic.c:160:
--showfile
# Use the codespell dictionary for spelling/typos
--codespell
# enable more tests
--strict
# We use LINUX_VERSION_CODE to match a new naming convention of system calls
# introduced by kernel 4.17.0
--ignore LINUX_VERSION_CODE
# Don't show messages like:
# struct should normally be const
--ignore CONST_STRUCT