Re: [PATCH] Docbook: allow warning on unused documentation

From: Randy Dunlap
Date: Thu Aug 26 2010 - 14:48:45 EST


On Thu, 26 Aug 2010 19:43:14 +0200 Johannes Berg wrote:

> From: Johannes Berg <johannes.berg@xxxxxxxxx>
>
> When you don't use !E or !I but only !F, then
> it's very easy to miss including some functions,
> structs etc. in documentation. To help finding
> which ones were missed, allow printing out the
> unused ones as warnings.
>
> For example, using this on mac80211 yields a
> lot of warnings like this:
>
> Warning: didn't use docs for DOC: mac80211 workqueue
> Warning: didn't use docs for ieee80211_max_queues
> Warning: didn't use docs for ieee80211_bss_change
> Warning: didn't use docs for ieee80211_bss_conf
>
> when generating the documentation for it.
>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
> ---
> v2: - fix comment
> - use !C instead of !A
>
> Documentation/kernel-doc-nano-HOWTO.txt | 5 +
> scripts/basic/docproc.c | 129 +++++++++++++++++++++++++++++++-
> scripts/kernel-doc | 52 ++++++++++++
> 3 files changed, 183 insertions(+), 3 deletions(-)

Applied, thanks.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/