public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH resend] checkpatch: Replace __init_refok by __refconst and __refdata
@ 2017-07-17 13:42 Geert Uytterhoeven
  2017-07-17 15:01 ` Joe Perches
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2017-07-17 13:42 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches
  Cc: Fabian Frederick, linux-kernel, Geert Uytterhoeven

As of commit bd721ea73e1f9655 ("treewide: replace obsolete _refok by
__ref"), __init_refok no longer exists, so it can be removed.
While at it, add the modern variants that were still missing.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 scripts/checkpatch.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2287a0bca863bf57..b88740bfe9d14e41 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -343,9 +343,10 @@ our $Sparse	= qr{
 			__force|
 			__iomem|
 			__must_check|
-			__init_refok|
 			__kprobes|
 			__ref|
+			__refconst|
+			__refdata|
 			__rcu|
 			__private
 		}x;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH resend] checkpatch: Replace __init_refok by __refconst and __refdata
  2017-07-17 13:42 [PATCH resend] checkpatch: Replace __init_refok by __refconst and __refdata Geert Uytterhoeven
@ 2017-07-17 15:01 ` Joe Perches
  2017-07-18 12:20   ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2017-07-17 15:01 UTC (permalink / raw)
  To: Geert Uytterhoeven, Andy Whitcroft, Andrew Morton
  Cc: Fabian Frederick, linux-kernel

On Mon, 2017-07-17 at 15:42 +0200, Geert Uytterhoeven wrote:
> As of commit bd721ea73e1f9655 ("treewide: replace obsolete _refok by
> __ref"), __init_refok no longer exists, so it can be removed.
> While at it, add the modern variants that were still missing.

Maybe nicer to add some phrase like "Update sparse keywords"
in the patch title

> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  scripts/checkpatch.pl | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 2287a0bca863bf57..b88740bfe9d14e41 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -343,9 +343,10 @@ our $Sparse	= qr{
>  			__force|
>  			__iomem|
>  			__must_check|
> -			__init_refok|
>  			__kprobes|
>  			__ref|
> +			__refconst|
> +			__refdata|
>  			__rcu|
>  			__private
>  		}x;

Anyway:

Acked-by: Joe Perches <joe@perches.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH resend] checkpatch: Replace __init_refok by __refconst and __refdata
  2017-07-17 15:01 ` Joe Perches
@ 2017-07-18 12:20   ` Geert Uytterhoeven
  0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2017-07-18 12:20 UTC (permalink / raw)
  To: Joe Perches
  Cc: Geert Uytterhoeven, Andy Whitcroft, Andrew Morton,
	Fabian Frederick, linux-kernel@vger.kernel.org

Hi Joe,

On Mon, Jul 17, 2017 at 5:01 PM, Joe Perches <joe@perches.com> wrote:
> On Mon, 2017-07-17 at 15:42 +0200, Geert Uytterhoeven wrote:
>> As of commit bd721ea73e1f9655 ("treewide: replace obsolete _refok by
>> __ref"), __init_refok no longer exists, so it can be removed.
>> While at it, add the modern variants that were still missing.
>
> Maybe nicer to add some phrase like "Update sparse keywords"
> in the patch title

s/sparse/section/?
Will fix in v2.

>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> ---
>>  scripts/checkpatch.pl | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
>> index 2287a0bca863bf57..b88740bfe9d14e41 100755
>> --- a/scripts/checkpatch.pl
>> +++ b/scripts/checkpatch.pl
>> @@ -343,9 +343,10 @@ our $Sparse      = qr{
>>                       __force|
>>                       __iomem|
>>                       __must_check|
>> -                     __init_refok|
>>                       __kprobes|
>>                       __ref|
>> +                     __refconst|
>> +                     __refdata|
>>                       __rcu|
>>                       __private
>>               }x;
>
> Anyway:
>
> Acked-by: Joe Perches <joe@perches.com>

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-18 12:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 13:42 [PATCH resend] checkpatch: Replace __init_refok by __refconst and __refdata Geert Uytterhoeven
2017-07-17 15:01 ` Joe Perches
2017-07-18 12:20   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox