-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.checkpatch.conf
77 lines (67 loc) · 1.96 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This isn't actually a Linux kernel tree
--no-tree
# Errors that make no sense if we aren't the Linux kernel
--ignore MODIFIED_INCLUDE_ASM
--ignore LO_MACRO
--ignore HI_MACRO
--ignore CSYNC
--ignore SSYNC
--ignore UAPI_INCLUDE
--ignore IN_ATOMIC
--ignore LOCKDEP
# Warnings specitifc to the Linux kernel
--ignore USE_RELATIVE_PATH
--ignore CONFIG_DESCRIPTION
--ignore CONFIG_EXPERIMENTAL
--ignore DEPRECATED_VARIABLE
--ignore NETWORKING_BLOCK_COMMENT_STYLE
--ignore HOTPLUG_SECTION
--ignore EXPORT_SYMBOL
--ignore DEFINE_PCI_DEVICE_TABLE
--ignore LINUX_VERSION_CODE
--ignore PRINTK_RATELIMITED
--ignore PRINTK_WITHOUT_KERN_LEVEL
--ignore PREFER_PR_LEVEL
--ignore USE_NEGATIVE_ERRNO
--ignore INCLUDE_LINUX
--ignore MISSING_VMLINUX
--ignore MSLEEP
--ignore PREFER_PACKED
--ignore PREFER_ALIGNED
--ignore PREFER_PRINTF
--ignore PREFER_SCANF
--ignore USE_SPINLOCK_T
--ignore PREFER_SEQ_PUTS
--ignore USLEEP_RANGE
--ignore KREALLOC_ARG_REUSE
--ignore YIELD
--ignore CONSIDER_KSTRTO
--ignore USE_DEVICE_INITCALL
--ignore NR_CPUS
--ignore PRINTF_L
--ignore EXPORTED_WORLD_WRITABLE
--ignore FILE_PATH_CHANGES
# Checks specitifc to the Linux kernel
--ignore ARCH_INCLUDE_LINUX
--ignore UNCOMMENTED_DEFINITION
--ignore UNCOMMENTED_BARRIER
--ignore ARCH_DEFINES
--ignore UNDOCUMENTED_SETUP
--ignore NEW_TYPEDEFS
# Don't flag this, since we have LogThis and FSAL_that.
--ignore CAMELCASE
# Do not consider gerrit changeid as an error
--ignore GERRIT_CHANGE_ID
# Not being in the kernel, we don't have ARRAY_SIZE macro so some places
# define it.
--ignore ARRAY_SIZE
# our coding style has too many if-then-else that have return in the middle
# and thus create unnecessary else
--ignore UNNECESSARY_ELSE
# Allow janitor patches to cleanup checkpatch errors
--ignore EMAIL_SUBJECT
# We use full commit id when referencing other commits
--ignore GIT_COMMIT_ID
# We have the FSF address in a lot of our headers at the moment,
# should clean that up one day but ignoring for now.
--ignore FSF_MAILING_ADDRESS