Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1733535

Re: [PATCH] checkpatch: do not check missing blank line before builtin_*_driver

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH] checkpatch: do not check missing blank line before builtin_*_driver
Date 2017-09-17 22:50 +0200
Message-ID <uqOFP-4FV-1@gated-at.bofh.it> (permalink)
References <uqJmO-19W-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, 2017-09-17 at 23:59 +0900, Masahiro Yamada wrote:
> checkpatch.pl does not check missing blank line before module_*_driver.
> I want it to behave likewise for builtin_*_driver.
[]
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index dd2c262aebbf..cec896306619 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -3103,6 +3103,7 @@ sub process {
>  		      $line =~ /^\+[a-z_]*init/ ||
>  		      $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
>  		      $line =~ /^\+\s*DECLARE/ ||
> +		      $line =~ /^\+\s*builtin_/ ||

I believe

		      $line =~ /^\+\s*builtin_[\w_]*driver/ ||

would be better

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] checkpatch: do not check missing blank line before builtin_*_driver Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-17 17:10 +0200
  Re: [PATCH] checkpatch: do not check missing blank line before  builtin_*_driver Joe Perches <joe@perches.com> - 2017-09-17 22:50 +0200
    Re: [PATCH] checkpatch: do not check missing blank line before builtin_*_driver Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-18 04:10 +0200

csiph-web