Commit 0bc989ff authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Torvalds

checkpatch: do not check missing blank line before builtin_*_driver does not check missing blank line before module_*_driver.
I want it to behave likewise for builtin_*_driver.

Link: default avatarMasahiro Yamada <>
Acked-by: default avatarJoe Perches <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5751a24e
......@@ -3105,6 +3105,7 @@ sub process {
$line =~ /^\+[a-z_]*init/ ||
$line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
$line =~ /^\+\s*DECLARE/ ||
$line =~ /^\+\s*builtin_[\w_]*driver/ ||
$line =~ /^\+\s*__setup/)) {
"Please use a blank line after function/struct/union/enum declarations\n" . $hereprev) &&
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