Linux USB
 help / color / mirror / Atom feed
* [PATCH] usb: dwc3: Fix documentation warning for sg member
@ 2025-01-23  8:01 Usman Akinyemi
  2025-01-23 14:07 ` Greg KH
  2025-01-23 15:13 ` [PATCH v2] " Usman Akinyemi
  0 siblings, 2 replies; 10+ messages in thread
From: Usman Akinyemi @ 2025-01-23  8:01 UTC (permalink / raw)
  To: Thinh.Nguyen; +Cc: gregkh, linux-usb, linux-kernel

The 'sg' member in struct dwc3_request was undocumented, causing a
documentation warning when building the kernel docs.

This patch adds a description for the 'sg' field, resolving the warning.

Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
---
 drivers/usb/dwc3/core.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index ee73789326bc..0c417a12e6f4 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -941,6 +941,7 @@ struct dwc3_hwparams {
  * @request: struct usb_request to be transferred
  * @list: a list_head used for request queueing
  * @dep: struct dwc3_ep owning this request
+ * @sg: pointer to a scatterlist for DMA operations
  * @start_sg: pointer to the sg which should be queued next
  * @num_pending_sgs: counter to pending sgs
  * @remaining: amount of data remaining
-- 
2.48.0


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

* Re: [PATCH] usb: dwc3: Fix documentation warning for sg member
  2025-01-23  8:01 [PATCH] usb: dwc3: Fix documentation warning for sg member Usman Akinyemi
@ 2025-01-23 14:07 ` Greg KH
  2025-01-23 14:17   ` Usman Akinyemi
  2025-01-23 15:13 ` [PATCH v2] " Usman Akinyemi
  1 sibling, 1 reply; 10+ messages in thread
From: Greg KH @ 2025-01-23 14:07 UTC (permalink / raw)
  To: Usman Akinyemi; +Cc: Thinh.Nguyen, linux-usb, linux-kernel

On Thu, Jan 23, 2025 at 01:31:02PM +0530, Usman Akinyemi wrote:
> The 'sg' member in struct dwc3_request was undocumented, causing a
> documentation warning when building the kernel docs.
> 
> This patch adds a description for the 'sg' field, resolving the warning.
> 
> Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>

What commit id does this fix?  And what about the reported-by: line?

thanks,

greg k-h

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

* Re: [PATCH] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 14:07 ` Greg KH
@ 2025-01-23 14:17   ` Usman Akinyemi
  2025-01-23 14:22     ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Usman Akinyemi @ 2025-01-23 14:17 UTC (permalink / raw)
  To: Greg KH; +Cc: Thinh.Nguyen, linux-usb, linux-kernel

On Thu, Jan 23, 2025 at 7:37 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Jan 23, 2025 at 01:31:02PM +0530, Usman Akinyemi wrote:
> > The 'sg' member in struct dwc3_request was undocumented, causing a
> > documentation warning when building the kernel docs.
> >
> > This patch adds a description for the 'sg' field, resolving the warning.
> >
> > Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
>
> What commit id does this fix?  And what about the reported-by: line?
>
> thanks,
>
Hi Greg,

Thanks for replying.

I was applying to Linux Mentorship(LFX) for fixing the Linux Kernel Bugs.
One of the tasks was to look for documentation warnings and I saw this.

I created a patch for it and sent it also. So, it is not reported.

I am not sure if I am missing something though.

Thank you.
Usman.
> greg k-h

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

* Re: [PATCH] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 14:17   ` Usman Akinyemi
@ 2025-01-23 14:22     ` Greg KH
  2025-01-23 15:15       ` Usman Akinyemi
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2025-01-23 14:22 UTC (permalink / raw)
  To: Usman Akinyemi; +Cc: Thinh.Nguyen, linux-usb, linux-kernel

On Thu, Jan 23, 2025 at 07:47:18PM +0530, Usman Akinyemi wrote:
> On Thu, Jan 23, 2025 at 7:37 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Thu, Jan 23, 2025 at 01:31:02PM +0530, Usman Akinyemi wrote:
> > > The 'sg' member in struct dwc3_request was undocumented, causing a
> > > documentation warning when building the kernel docs.
> > >
> > > This patch adds a description for the 'sg' field, resolving the warning.
> > >
> > > Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
> >
> > What commit id does this fix?  And what about the reported-by: line?
> >
> > thanks,
> >
> Hi Greg,
> 
> Thanks for replying.
> 
> I was applying to Linux Mentorship(LFX) for fixing the Linux Kernel Bugs.
> One of the tasks was to look for documentation warnings and I saw this.
> 
> I created a patch for it and sent it also. So, it is not reported.

It was, you might have missed it on the mailing list:
	https://lore.kernel.org/r/20250120182219.30dcb3c6@canb.auug.org.au

Also it still needs a "Fixes:" tag.

thanks,

greg k-h

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

* [PATCH v2] usb: dwc3: Fix documentation warning for sg member
  2025-01-23  8:01 [PATCH] usb: dwc3: Fix documentation warning for sg member Usman Akinyemi
  2025-01-23 14:07 ` Greg KH
@ 2025-01-23 15:13 ` Usman Akinyemi
  2025-01-23 15:38   ` Greg KH
  1 sibling, 1 reply; 10+ messages in thread
From: Usman Akinyemi @ 2025-01-23 15:13 UTC (permalink / raw)
  To: Thinh.Nguyen; +Cc: gregkh, linux-usb, linux-kernel, Stephen Rothwell

The 'sg' member in struct dwc3_request was undocumented, causing a
documentation warning when building the kernel docs.

This patch adds a description for the 'sg' field, resolving the warning.

Fixes: 61440628a4ff ("usb: dwc3: gadget: Cleanup SG handling")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
---
 drivers/usb/dwc3/core.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index ee73789326bc..0c417a12e6f4 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -941,6 +941,7 @@ struct dwc3_hwparams {
  * @request: struct usb_request to be transferred
  * @list: a list_head used for request queueing
  * @dep: struct dwc3_ep owning this request
+ * @sg: pointer to a scatterlist for DMA operations
  * @start_sg: pointer to the sg which should be queued next
  * @num_pending_sgs: counter to pending sgs
  * @remaining: amount of data remaining
-- 
2.48.0


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

* Re: [PATCH] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 14:22     ` Greg KH
@ 2025-01-23 15:15       ` Usman Akinyemi
  0 siblings, 0 replies; 10+ messages in thread
From: Usman Akinyemi @ 2025-01-23 15:15 UTC (permalink / raw)
  To: Greg KH; +Cc: Thinh.Nguyen, linux-usb, linux-kernel

On Thu, Jan 23, 2025 at 7:52 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Jan 23, 2025 at 07:47:18PM +0530, Usman Akinyemi wrote:
> > On Thu, Jan 23, 2025 at 7:37 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Thu, Jan 23, 2025 at 01:31:02PM +0530, Usman Akinyemi wrote:
> > > > The 'sg' member in struct dwc3_request was undocumented, causing a
> > > > documentation warning when building the kernel docs.
> > > >
> > > > This patch adds a description for the 'sg' field, resolving the warning.
> > > >
> > > > Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
> > >
> > > What commit id does this fix?  And what about the reported-by: line?
> > >
> > > thanks,
> > >
> > Hi Greg,
> >
> > Thanks for replying.
> >
> > I was applying to Linux Mentorship(LFX) for fixing the Linux Kernel Bugs.
> > One of the tasks was to look for documentation warnings and I saw this.
> >
> > I created a patch for it and sent it also. So, it is not reported.
>
> It was, you might have missed it on the mailing list:
>         https://lore.kernel.org/r/20250120182219.30dcb3c6@canb.auug.org.au
>
> Also it still needs a "Fixes:" tag.
>
> thanks,
Thanks for this, I am sorry, I did not know.

I sent the updated version. I hope it fixes this.

Thank you.
>
> greg k-h

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

* Re: [PATCH v2] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 15:13 ` [PATCH v2] " Usman Akinyemi
@ 2025-01-23 15:38   ` Greg KH
  2025-01-23 15:52     ` Usman Akinyemi
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2025-01-23 15:38 UTC (permalink / raw)
  To: Usman Akinyemi; +Cc: Thinh.Nguyen, linux-usb, linux-kernel, Stephen Rothwell

On Thu, Jan 23, 2025 at 08:43:35PM +0530, Usman Akinyemi wrote:
> The 'sg' member in struct dwc3_request was undocumented, causing a
> documentation warning when building the kernel docs.
> 
> This patch adds a description for the 'sg' field, resolving the warning.
> 
> Fixes: 61440628a4ff ("usb: dwc3: gadget: Cleanup SG handling")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
> ---
>  drivers/usb/dwc3/core.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> index ee73789326bc..0c417a12e6f4 100644
> --- a/drivers/usb/dwc3/core.h
> +++ b/drivers/usb/dwc3/core.h
> @@ -941,6 +941,7 @@ struct dwc3_hwparams {
>   * @request: struct usb_request to be transferred
>   * @list: a list_head used for request queueing
>   * @dep: struct dwc3_ep owning this request
> + * @sg: pointer to a scatterlist for DMA operations
>   * @start_sg: pointer to the sg which should be queued next
>   * @num_pending_sgs: counter to pending sgs
>   * @remaining: amount of data remaining
> -- 
> 2.48.0

Wait, what kernel is this based on?  This structure does not have the
@sg field in it anymore in linux-next, so why is this warning still
showing up?

confused,

greg k-h

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

* Re: [PATCH v2] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 15:38   ` Greg KH
@ 2025-01-23 15:52     ` Usman Akinyemi
  2025-01-23 15:57       ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Usman Akinyemi @ 2025-01-23 15:52 UTC (permalink / raw)
  To: Greg KH; +Cc: Thinh.Nguyen, linux-usb, linux-kernel, Stephen Rothwell

On Thu, Jan 23, 2025 at 9:08 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Jan 23, 2025 at 08:43:35PM +0530, Usman Akinyemi wrote:
> > The 'sg' member in struct dwc3_request was undocumented, causing a
> > documentation warning when building the kernel docs.
> >
> > This patch adds a description for the 'sg' field, resolving the warning.
> >
> > Fixes: 61440628a4ff ("usb: dwc3: gadget: Cleanup SG handling")
> > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
> > ---
> >  drivers/usb/dwc3/core.h | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> > index ee73789326bc..0c417a12e6f4 100644
> > --- a/drivers/usb/dwc3/core.h
> > +++ b/drivers/usb/dwc3/core.h
> > @@ -941,6 +941,7 @@ struct dwc3_hwparams {
> >   * @request: struct usb_request to be transferred
> >   * @list: a list_head used for request queueing
> >   * @dep: struct dwc3_ep owning this request
> > + * @sg: pointer to a scatterlist for DMA operations
> >   * @start_sg: pointer to the sg which should be queued next
> >   * @num_pending_sgs: counter to pending sgs
> >   * @remaining: amount of data remaining
> > --
> > 2.48.0
>
> Wait, what kernel is this based on?  This structure does not have the
> @sg field in it anymore in linux-next, so why is this warning still
> showing up?
>
> confused,
Ohh, sorry, this is the 6.13.0 version, right from Linus fork on Git.

Maybe, it is already being fixed and I did not have the latest update
as I have some new commits.
>
> greg k-h

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

* Re: [PATCH v2] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 15:52     ` Usman Akinyemi
@ 2025-01-23 15:57       ` Greg KH
  2025-01-23 16:11         ` Usman Akinyemi
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2025-01-23 15:57 UTC (permalink / raw)
  To: Usman Akinyemi; +Cc: Thinh.Nguyen, linux-usb, linux-kernel, Stephen Rothwell

On Thu, Jan 23, 2025 at 09:22:01PM +0530, Usman Akinyemi wrote:
> On Thu, Jan 23, 2025 at 9:08 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Thu, Jan 23, 2025 at 08:43:35PM +0530, Usman Akinyemi wrote:
> > > The 'sg' member in struct dwc3_request was undocumented, causing a
> > > documentation warning when building the kernel docs.
> > >
> > > This patch adds a description for the 'sg' field, resolving the warning.
> > >
> > > Fixes: 61440628a4ff ("usb: dwc3: gadget: Cleanup SG handling")
> > > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
> > > ---
> > >  drivers/usb/dwc3/core.h | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> > > index ee73789326bc..0c417a12e6f4 100644
> > > --- a/drivers/usb/dwc3/core.h
> > > +++ b/drivers/usb/dwc3/core.h
> > > @@ -941,6 +941,7 @@ struct dwc3_hwparams {
> > >   * @request: struct usb_request to be transferred
> > >   * @list: a list_head used for request queueing
> > >   * @dep: struct dwc3_ep owning this request
> > > + * @sg: pointer to a scatterlist for DMA operations
> > >   * @start_sg: pointer to the sg which should be queued next
> > >   * @num_pending_sgs: counter to pending sgs
> > >   * @remaining: amount of data remaining
> > > --
> > > 2.48.0
> >
> > Wait, what kernel is this based on?  This structure does not have the
> > @sg field in it anymore in linux-next, so why is this warning still
> > showing up?
> >
> > confused,
> Ohh, sorry, this is the 6.13.0 version, right from Linus fork on Git.
> 
> Maybe, it is already being fixed and I did not have the latest update
> as I have some new commits.

Please always work off of linux-next when doing development so that you
don't end up duplicating the work others have already done.

thanks,

greg k-h

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

* Re: [PATCH v2] usb: dwc3: Fix documentation warning for sg member
  2025-01-23 15:57       ` Greg KH
@ 2025-01-23 16:11         ` Usman Akinyemi
  0 siblings, 0 replies; 10+ messages in thread
From: Usman Akinyemi @ 2025-01-23 16:11 UTC (permalink / raw)
  To: Greg KH; +Cc: Thinh.Nguyen, linux-usb, linux-kernel, Stephen Rothwell

On Thu, Jan 23, 2025 at 9:28 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Jan 23, 2025 at 09:22:01PM +0530, Usman Akinyemi wrote:
> > On Thu, Jan 23, 2025 at 9:08 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Thu, Jan 23, 2025 at 08:43:35PM +0530, Usman Akinyemi wrote:
> > > > The 'sg' member in struct dwc3_request was undocumented, causing a
> > > > documentation warning when building the kernel docs.
> > > >
> > > > This patch adds a description for the 'sg' field, resolving the warning.
> > > >
> > > > Fixes: 61440628a4ff ("usb: dwc3: gadget: Cleanup SG handling")
> > > > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > > Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
> > > > ---
> > > >  drivers/usb/dwc3/core.h | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> > > > index ee73789326bc..0c417a12e6f4 100644
> > > > --- a/drivers/usb/dwc3/core.h
> > > > +++ b/drivers/usb/dwc3/core.h
> > > > @@ -941,6 +941,7 @@ struct dwc3_hwparams {
> > > >   * @request: struct usb_request to be transferred
> > > >   * @list: a list_head used for request queueing
> > > >   * @dep: struct dwc3_ep owning this request
> > > > + * @sg: pointer to a scatterlist for DMA operations
> > > >   * @start_sg: pointer to the sg which should be queued next
> > > >   * @num_pending_sgs: counter to pending sgs
> > > >   * @remaining: amount of data remaining
> > > > --
> > > > 2.48.0
> > >
> > > Wait, what kernel is this based on?  This structure does not have the
> > > @sg field in it anymore in linux-next, so why is this warning still
> > > showing up?
> > >
> > > confused,
> > Ohh, sorry, this is the 6.13.0 version, right from Linus fork on Git.
> >
> > Maybe, it is already being fixed and I did not have the latest update
> > as I have some new commits.
>
> Please always work off of linux-next when doing development so that you
> don't end up duplicating the work others have already done.
Noted and thanks. Sorry for the noise.
>
> thanks,
>
> greg k-h

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

end of thread, other threads:[~2025-01-23 16:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23  8:01 [PATCH] usb: dwc3: Fix documentation warning for sg member Usman Akinyemi
2025-01-23 14:07 ` Greg KH
2025-01-23 14:17   ` Usman Akinyemi
2025-01-23 14:22     ` Greg KH
2025-01-23 15:15       ` Usman Akinyemi
2025-01-23 15:13 ` [PATCH v2] " Usman Akinyemi
2025-01-23 15:38   ` Greg KH
2025-01-23 15:52     ` Usman Akinyemi
2025-01-23 15:57       ` Greg KH
2025-01-23 16:11         ` Usman Akinyemi

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