Commit 52131292 authored by Wolfram Sang's avatar Wolfram Sang Committed by Linus Torvalds
Browse files

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

- add '__initconst'
- force plain 'init' to contain a word-boundary at the end
Signed-off-by: default avatarWolfram Sang <>
Cc: Andy Whitcroft <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 691e669b
......@@ -145,11 +145,14 @@ our $Sparse = qr{
# Notes to $Attribute:
# We need \b after 'init' otherwise 'initconst' will cause a false positive in a check
our $Attribute = qr{
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment