mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
checkpatch: fix false positive on __initconst
checkpatch falsely complained about '__initconst' because it thought the 'const' needed a space before. Fix this by changing the list of attributes: - add '__initconst' - force plain 'init' to contain a word-boundary at the end Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Cc: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
691e669ba8
commit
52131292c0
@ -145,11 +145,14 @@ our $Sparse = qr{
|
|||||||
__kprobes|
|
__kprobes|
|
||||||
__ref
|
__ref
|
||||||
}x;
|
}x;
|
||||||
|
|
||||||
|
# Notes to $Attribute:
|
||||||
|
# We need \b after 'init' otherwise 'initconst' will cause a false positive in a check
|
||||||
our $Attribute = qr{
|
our $Attribute = qr{
|
||||||
const|
|
const|
|
||||||
__read_mostly|
|
__read_mostly|
|
||||||
__kprobes|
|
__kprobes|
|
||||||
__(?:mem|cpu|dev|)(?:initdata|init)|
|
__(?:mem|cpu|dev|)(?:initdata|initconst|init\b)|
|
||||||
____cacheline_aligned|
|
____cacheline_aligned|
|
||||||
____cacheline_aligned_in_smp|
|
____cacheline_aligned_in_smp|
|
||||||
____cacheline_internodealigned_in_smp|
|
____cacheline_internodealigned_in_smp|
|
||||||
|
Loading…
Reference in New Issue
Block a user