diff mbox

[1/1] checkpatch: allow spaces before parenthesis for 'coroutine_fn'

Message ID 83b0fae0728906e18849c971d22d077d7fc0f179.1478010883.git.jcody@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Cody Nov. 1, 2016, 2:38 p.m. UTC
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eric Blake Nov. 1, 2016, 2:42 p.m. UTC | #1
On 11/01/2016 09:38 AM, Jeff Cody wrote:
> Signed-off-by: Jeff Cody <jcody@redhat.com>
> ---
>  scripts/checkpatch.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 3afa19a..9e64e61 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1754,7 +1754,7 @@ sub process {
>  			# Ignore those directives where spaces _are_ permitted.
>  			if ($name =~ /^(?:
>  				if|for|while|switch|return|case|
> -				volatile|__volatile__|
> +				volatile|__volatile__|coroutine_fn|
>  				__attribute__|format|__extension__|
>  				asm|__asm__)$/x)
>  			{
>
Paolo Bonzini Nov. 1, 2016, 2:45 p.m. UTC | #2
On 01/11/2016 15:38, Jeff Cody wrote:
> Signed-off-by: Jeff Cody <jcody@redhat.com>
> ---
>  scripts/checkpatch.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 3afa19a..9e64e61 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1754,7 +1754,7 @@ sub process {
>  			# Ignore those directives where spaces _are_ permitted.
>  			if ($name =~ /^(?:
>  				if|for|while|switch|return|case|
> -				volatile|__volatile__|
> +				volatile|__volatile__|coroutine_fn|
>  				__attribute__|format|__extension__|
>  				asm|__asm__)$/x)
>  			{
> 

Looks good, thanks.

Paolo
diff mbox

Patch

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3afa19a..9e64e61 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1754,7 +1754,7 @@  sub process {
 			# Ignore those directives where spaces _are_ permitted.
 			if ($name =~ /^(?:
 				if|for|while|switch|return|case|
-				volatile|__volatile__|
+				volatile|__volatile__|coroutine_fn|
 				__attribute__|format|__extension__|
 				asm|__asm__)$/x)
 			{