summaryrefslogtreecommitdiff
path: root/.checkpatch.conf
blob: 511019b2601ab2592f275851327b5f292ab8fb9c (plain)
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
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Not Linux, so don't expect a Linux tree.
--no-tree

# Ignore aspects we don't follow here.
--ignore SPLIT_STRING

--ignore GIT_COMMIT_ID

--ignore C99_COMMENT_TOLERANCE

--ignore VSPRINTF_POINTER_EXTENSION

# Shorter KConfig descriptions are OK.
--min-conf-desc-length=2

# Zephyr has a function named "printk" with different facilities than
# the printk in the Linux kernel this check is made for.
--ignore PRINTK_WITHOUT_KERN_LEVEL

# Zephyr coding style requires braces even when not explicitly
# required (unlike the Linux kernel).  In the interest of making code
# easier to upstream into the Zephyr tree, we should do the same.
# Tell checkpatch to ignore Linux style here.
--ignore BRACES

# Zephyr uses ENOSYS to indicate unsupported API calls
--ignore ENOSYS