* [PATCH] scripts/kernel-doc: fix fatal error caused by cfg80211.h
@ 2012-01-21 18:31 Randy Dunlap
2012-01-21 18:36 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2012-01-21 18:31 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Linus Torvalds, Johannes Berg
From: Randy Dunlap <rdunlap@xenotime.net>
include/net/cfg80211.h uses __must_check in functions that
have kernel-doc notation. This was confusing scripts/kernel-doc,
so have scripts/kernel-doc ignore "__must_check".
Error(include/net/cfg80211.h:2702): cannot understand prototype: 'struct cfg80211_bss * __must_check cfg80211_inform_bss(...)
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Johannes Berg <johannes@sipsolutions.net>
---
scripts/kernel-doc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- lnx-33-rc1.orig/scripts/kernel-doc
+++ lnx-33-rc1/scripts/kernel-doc
@@ -5,7 +5,7 @@ use strict;
## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
## Copyright (C) 2001 Simon Huggins ##
-## Copyright (C) 2005-2010 Randy Dunlap ##
+## Copyright (C) 2005-2012 Randy Dunlap ##
## ##
## #define enhancements by Armin Kuster <akuster@mvista.com> ##
## Copyright (c) 2000 MontaVista Software, Inc. ##
@@ -1785,6 +1785,7 @@ sub dump_function($$) {
$prototype =~ s/__devinit +//;
$prototype =~ s/__init +//;
$prototype =~ s/__init_or_module +//;
+ $prototype =~ s/__must_check +//;
$prototype =~ s/^#\s*define\s+//; #ak added
$prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts/kernel-doc: fix fatal error caused by cfg80211.h
2012-01-21 18:31 [PATCH] scripts/kernel-doc: fix fatal error caused by cfg80211.h Randy Dunlap
@ 2012-01-21 18:36 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2012-01-21 18:36 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Linux Kernel Mailing List, Linus Torvalds
On Sat, 2012-01-21 at 10:31 -0800, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
>
> include/net/cfg80211.h uses __must_check in functions that
> have kernel-doc notation. This was confusing scripts/kernel-doc,
> so have scripts/kernel-doc ignore "__must_check".
>
> Error(include/net/cfg80211.h:2702): cannot understand prototype: 'struct cfg80211_bss * __must_check cfg80211_inform_bss(...)
Thanks Randy, I'd seen this a little while ago but not gotten around to
investigating.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-21 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-21 18:31 [PATCH] scripts/kernel-doc: fix fatal error caused by cfg80211.h Randy Dunlap
2012-01-21 18:36 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®