All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] driver core: Add missing parameter description to kerneldoc
@ 2014-08-08  9:36 Thierry Reding
  2014-08-08 13:41 ` Greg Kroah-Hartman
  2014-08-08 13:56 ` [PATCH v2] driver core: Remove kerneldoc from local function Thierry Reding
  0 siblings, 2 replies; 4+ messages in thread
From: Thierry Reding @ 2014-08-08  9:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

From: Thierry Reding <treding@nvidia.com>

The deferred_probe_work_func() takes a single parameter but the
kerneldoc doesn't describe it.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Note that since the function is locally scoped there isn't all that much
point in having a kerneldoc comment for it, but since it's already there
might as well make it correct.

 drivers/base/dd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index e4ffbcf2f519..e8d417bb65bd 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -56,6 +56,7 @@ static atomic_t deferred_trigger_count = ATOMIC_INIT(0);
 
 /**
  * deferred_probe_work_func() - Retry probing devices in the active list.
+ * @work: work queue for deferred probe processing
  */
 static void deferred_probe_work_func(struct work_struct *work)
 {
-- 
2.0.4


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

* Re: [PATCH] driver core: Add missing parameter description to kerneldoc
  2014-08-08  9:36 [PATCH] driver core: Add missing parameter description to kerneldoc Thierry Reding
@ 2014-08-08 13:41 ` Greg Kroah-Hartman
  2014-08-08 13:43   ` Thierry Reding
  2014-08-08 13:56 ` [PATCH v2] driver core: Remove kerneldoc from local function Thierry Reding
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2014-08-08 13:41 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-kernel

On Fri, Aug 08, 2014 at 11:36:31AM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> The deferred_probe_work_func() takes a single parameter but the
> kerneldoc doesn't describe it.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> Note that since the function is locally scoped there isn't all that much
> point in having a kerneldoc comment for it, but since it's already there
> might as well make it correct.

How about just removing the kerneldoc format so this isn't an issue?

thanks,

greg k-h

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

* Re: [PATCH] driver core: Add missing parameter description to kerneldoc
  2014-08-08 13:41 ` Greg Kroah-Hartman
@ 2014-08-08 13:43   ` Thierry Reding
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2014-08-08 13:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

On Fri, Aug 08, 2014 at 06:41:47AM -0700, Greg Kroah-Hartman wrote:
> On Fri, Aug 08, 2014 at 11:36:31AM +0200, Thierry Reding wrote:
> > From: Thierry Reding <treding@nvidia.com>
> > 
> > The deferred_probe_work_func() takes a single parameter but the
> > kerneldoc doesn't describe it.
> > 
> > Signed-off-by: Thierry Reding <treding@nvidia.com>
> > ---
> > Note that since the function is locally scoped there isn't all that much
> > point in having a kerneldoc comment for it, but since it's already there
> > might as well make it correct.
> 
> How about just removing the kerneldoc format so this isn't an issue?

I can do that.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

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

* [PATCH v2] driver core: Remove kerneldoc from local function
  2014-08-08  9:36 [PATCH] driver core: Add missing parameter description to kerneldoc Thierry Reding
  2014-08-08 13:41 ` Greg Kroah-Hartman
@ 2014-08-08 13:56 ` Thierry Reding
  1 sibling, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2014-08-08 13:56 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel

From: Thierry Reding <treding@nvidia.com>

The deferred_probe_work_func() function is locally scoped, therefore an
associated kerneldoc comment isn't very useful. Replace the kerneldoc
opening marker (/**) with a regular block comment marker (/*) to avoid
the comment from being parsed by kerneldoc. This gets rid of a warning
caused by a missing description for the "work" argument.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v2:
- make comment non-kerneldoc rather than fixing it up

 drivers/base/dd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index e4ffbcf2f519..cdc779cf79a3 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -54,7 +54,7 @@ static LIST_HEAD(deferred_probe_active_list);
 static struct workqueue_struct *deferred_wq;
 static atomic_t deferred_trigger_count = ATOMIC_INIT(0);
 
-/**
+/*
  * deferred_probe_work_func() - Retry probing devices in the active list.
  */
 static void deferred_probe_work_func(struct work_struct *work)
-- 
2.0.4


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

end of thread, other threads:[~2014-08-08 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-08  9:36 [PATCH] driver core: Add missing parameter description to kerneldoc Thierry Reding
2014-08-08 13:41 ` Greg Kroah-Hartman
2014-08-08 13:43   ` Thierry Reding
2014-08-08 13:56 ` [PATCH v2] driver core: Remove kerneldoc from local function Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.