* [PATCH] Make kernel-doc ignore __init_or_module
@ 2010-03-23 15:31 William Cohen
2010-03-23 15:40 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: William Cohen @ 2010-03-23 15:31 UTC (permalink / raw)
To: Randy Dunlap, LKML
Function definitions may include __init_or_module. kernel-doc needs to
filter those out to avoid confusing __init_or_module for the function name.
Signed-off-by: William cohen <wcohen@redhat.com>
---
scripts/kernel-doc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index c7865c3..1d8db58 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1728,6 +1728,7 @@ sub dump_function($$) {
$prototype =~ s/^noinline +//;
$prototype =~ s/__devinit +//;
$prototype =~ s/__init +//;
+ $prototype =~ s/__init_or_module +//;
$prototype =~ s/^#\s*define\s+//; #ak added
$prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
--
1.6.6.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Make kernel-doc ignore __init_or_module
2010-03-23 15:31 [PATCH] Make kernel-doc ignore __init_or_module William Cohen
@ 2010-03-23 15:40 ` Randy Dunlap
2010-03-23 16:07 ` William Cohen
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2010-03-23 15:40 UTC (permalink / raw)
To: William Cohen; +Cc: Randy Dunlap, LKML
On 03/23/10 08:31, William Cohen wrote:
>
> Function definitions may include __init_or_module. kernel-doc needs to
> filter those out to avoid confusing __init_or_module for the function name.
>
> Signed-off-by: William cohen <wcohen@redhat.com>
> ---
> scripts/kernel-doc | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/kernel-doc b/scripts/kernel-doc
> index c7865c3..1d8db58 100755
> --- a/scripts/kernel-doc
> +++ b/scripts/kernel-doc
> @@ -1728,6 +1728,7 @@ sub dump_function($$) {
> $prototype =~ s/^noinline +//;
> $prototype =~ s/__devinit +//;
> $prototype =~ s/__init +//;
> + $prototype =~ s/__init_or_module +//;
> $prototype =~ s/^#\s*define\s+//; #ak added
> $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
>
Hi,
Yes, I know. I've already sent this patch to Linus more than once
and now Andrew has it for merging...
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Make kernel-doc ignore __init_or_module
2010-03-23 15:40 ` Randy Dunlap
@ 2010-03-23 16:07 ` William Cohen
0 siblings, 0 replies; 3+ messages in thread
From: William Cohen @ 2010-03-23 16:07 UTC (permalink / raw)
To: Randy Dunlap; +Cc: LKML
On 03/23/2010 11:40 AM, Randy Dunlap wrote:
> On 03/23/10 08:31, William Cohen wrote:
>>
>> Function definitions may include __init_or_module. kernel-doc needs to
>> filter those out to avoid confusing __init_or_module for the function name.
>>
>> Signed-off-by: William cohen <wcohen@redhat.com>
>> ---
>> scripts/kernel-doc | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/scripts/kernel-doc b/scripts/kernel-doc
>> index c7865c3..1d8db58 100755
>> --- a/scripts/kernel-doc
>> +++ b/scripts/kernel-doc
>> @@ -1728,6 +1728,7 @@ sub dump_function($$) {
>> $prototype =~ s/^noinline +//;
>> $prototype =~ s/__devinit +//;
>> $prototype =~ s/__init +//;
>> + $prototype =~ s/__init_or_module +//;
>> $prototype =~ s/^#\s*define\s+//; #ak added
>> $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
>>
>
> Hi,
>
> Yes, I know. I've already sent this patch to Linus more than once
> and now Andrew has it for merging...
>
Thanks, Randy. -Will
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-23 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23 15:31 [PATCH] Make kernel-doc ignore __init_or_module William Cohen
2010-03-23 15:40 ` Randy Dunlap
2010-03-23 16:07 ` William Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox