All of lore.kernel.org
 help / color / mirror / Atom feed
* Regarding undocumented string checkpatch.pl warning
@ 2019-03-04 19:19 Debleena Sen
  2019-03-04 19:50 ` idebleenasen
  0 siblings, 1 reply; 4+ messages in thread
From: Debleena Sen @ 2019-03-04 19:19 UTC (permalink / raw)
  To: outreachy-kernel

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

I came across the following warning in drivers/staging/wilc1000/wilc_spi.c

WARNING: DT compatible string "microchip,wilc1000-spi" appears
un-documented --check ./Documentation/devicetree/bindings/

I referred to  ./Documentation/devicetree/bindings/  and checked /staging,
resource-names.txt, vendor-prefixes.txt but I could not find anything
related to microchip or wilc1000.

On referring to ./Documentation/devicetree/bindings/spi  I found a text
file "microchip,spi-pic32.txt"  but I do not think its related to WILC1000
driver.

What should I do to remove this warning?

[-- Attachment #2: Type: text/html, Size: 721 bytes --]

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

* Re: Regarding undocumented string checkpatch.pl warning
  2019-03-04 19:19 Regarding undocumented string checkpatch.pl warning Debleena Sen
@ 2019-03-04 19:50 ` idebleenasen
  2019-03-05  7:05   ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: idebleenasen @ 2019-03-04 19:50 UTC (permalink / raw)
  To: outreachy-kernel


[-- Attachment #1.1: Type: text/plain, Size: 928 bytes --]

On Tuesday, March 5, 2019 at 12:49:53 AM UTC+5:30, Debleena Sen wrote:
>
> I came across the following warning in drivers/staging/wilc1000/wilc_spi.c
>
> WARNING: DT compatible string "microchip,wilc1000-spi" appears 
> un-documented --check ./Documentation/devicetree/bindings/
>
> I referred to  ./Documentation/devicetree/bindings/  and checked /staging, 
> resource-names.txt, vendor-prefixes.txt but I could not find anything 
> related to microchip or wilc1000.
>
> On referring to ./Documentation/devicetree/bindings/spi  I found a text 
> file "microchip,spi-pic32.txt"  but I do not think its related to WILC1000 
> driver.
>
> What should I do to remove this warning? 
>

Wanted to add that I found another text file in drivers/staging/wilc1000 
itself named "microchip,wilc1000,spi.txt". I think this is the required 
file. Should I move/copy this file to ./Documentation/devicetree/bindings/ 
to remove the warning?

[-- Attachment #1.2: Type: text/html, Size: 1242 bytes --]

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

* Re: [Outreachy kernel] Re: Regarding undocumented string checkpatch.pl warning
  2019-03-04 19:50 ` idebleenasen
@ 2019-03-05  7:05   ` Greg KH
  2019-03-05  7:13     ` Debleena Sen
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2019-03-05  7:05 UTC (permalink / raw)
  To: idebleenasen; +Cc: outreachy-kernel

On Mon, Mar 04, 2019 at 11:50:35AM -0800, idebleenasen@gmail.com wrote:
> On Tuesday, March 5, 2019 at 12:49:53 AM UTC+5:30, Debleena Sen wrote:
> >
> > I came across the following warning in drivers/staging/wilc1000/wilc_spi.c
> >
> > WARNING: DT compatible string "microchip,wilc1000-spi" appears 
> > un-documented --check ./Documentation/devicetree/bindings/
> >
> > I referred to  ./Documentation/devicetree/bindings/  and checked /staging, 
> > resource-names.txt, vendor-prefixes.txt but I could not find anything 
> > related to microchip or wilc1000.
> >
> > On referring to ./Documentation/devicetree/bindings/spi  I found a text 
> > file "microchip,spi-pic32.txt"  but I do not think its related to WILC1000 
> > driver.
> >
> > What should I do to remove this warning? 
> >
> 
> Wanted to add that I found another text file in drivers/staging/wilc1000 
> itself named "microchip,wilc1000,spi.txt". I think this is the required 
> file. Should I move/copy this file to ./Documentation/devicetree/bindings/ 
> to remove the warning?

No, staging drivers are supposed to be "self contained" and not need
changes in other parts of the kernel.  That doesn't work well with DT
files, so for now, until the driver gets merged to the "correct" part of
the kernel, the DT files stay with the driver itself.

Please do not move that file, as I will not take that patch, and you can
just ignore that checkpatch warning, there's nothing to do for it at
this point in time.

hope this helps,

greg k-h


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

* Re: [Outreachy kernel] Re: Regarding undocumented string checkpatch.pl warning
  2019-03-05  7:05   ` [Outreachy kernel] " Greg KH
@ 2019-03-05  7:13     ` Debleena Sen
  0 siblings, 0 replies; 4+ messages in thread
From: Debleena Sen @ 2019-03-05  7:13 UTC (permalink / raw)
  To: Greg KH; +Cc: outreachy-kernel

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

On Tue, 5 Mar 2019, 12:35 Greg KH, <greg@kroah.com> wrote:

> On Mon, Mar 04, 2019 at 11:50:35AM -0800, idebleenasen@gmail.com wrote:
> > On Tuesday, March 5, 2019 at 12:49:53 AM UTC+5:30, Debleena Sen wrote:
> > >
> > > I came across the following warning in
> drivers/staging/wilc1000/wilc_spi.c
> > >
> > > WARNING: DT compatible string "microchip,wilc1000-spi" appears
> > > un-documented --check ./Documentation/devicetree/bindings/
> > >
> > > I referred to  ./Documentation/devicetree/bindings/  and checked
> /staging,
> > > resource-names.txt, vendor-prefixes.txt but I could not find anything
> > > related to microchip or wilc1000.
> > >
> > > On referring to ./Documentation/devicetree/bindings/spi  I found a
> text
> > > file "microchip,spi-pic32.txt"  but I do not think its related to
> WILC1000
> > > driver.
> > >
> > > What should I do to remove this warning?
> > >
> >
> > Wanted to add that I found another text file in drivers/staging/wilc1000
> > itself named "microchip,wilc1000,spi.txt". I think this is the required
> > file. Should I move/copy this file to
> ./Documentation/devicetree/bindings/
> > to remove the warning?
>
> No, staging drivers are supposed to be "self contained" and not need
> changes in other parts of the kernel.  That doesn't work well with DT
> files, so for now, until the driver gets merged to the "correct" part of
> the kernel, the DT files stay with the driver itself.
>
> Please do not move that file, as I will not take that patch, and you can
> just ignore that checkpatch warning, there's nothing to do for it at
> this point in time.
>
> hope this helps,
>
> greg k-h
>

OK. Thanks!

>

[-- Attachment #2: Type: text/html, Size: 2490 bytes --]

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

end of thread, other threads:[~2019-03-05  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-04 19:19 Regarding undocumented string checkpatch.pl warning Debleena Sen
2019-03-04 19:50 ` idebleenasen
2019-03-05  7:05   ` [Outreachy kernel] " Greg KH
2019-03-05  7:13     ` Debleena Sen

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.