* linux-next: build warning for a long time
@ 2024-10-11 6:24 Stephen Rothwell
2024-10-11 6:31 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2024-10-11 6:24 UTC (permalink / raw)
To: Greg KH; +Cc: Jonathan Corbet, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 731 bytes --]
Hi all,
From before the git era, an htmldocs build (if we had such a thing back
then) would complain like this:
Documentation/driver-api/usb/usb:164: drivers/usb/core/message.c:968: WARNING: Duplicate C declaration, also defined at driver-api/usb/gadget:804.
Declaration is '.. c:function:: int usb_string (struct usb_device *dev, int index, char *buf, size_t size)'.
I assume it is confused because we have documented both a function and a
data type called "usb_string". The former in drivers/usb/core/message.c
and the latter in include/linux/usb/gadget.h.
There are about 46 references to the function and 105 to the struct.
We could rename the function to usb_string_utf8 ...
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: build warning for a long time
2024-10-11 6:24 linux-next: build warning for a long time Stephen Rothwell
@ 2024-10-11 6:31 ` Greg KH
2024-10-11 6:38 ` Akira Yokosawa
2024-10-11 6:51 ` Akira Yokosawa
0 siblings, 2 replies; 4+ messages in thread
From: Greg KH @ 2024-10-11 6:31 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Jonathan Corbet, Linux Kernel Mailing List,
Linux Next Mailing List
On Fri, Oct 11, 2024 at 05:24:42PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> From before the git era, an htmldocs build (if we had such a thing back
> then) would complain like this:
>
> Documentation/driver-api/usb/usb:164: drivers/usb/core/message.c:968: WARNING: Duplicate C declaration, also defined at driver-api/usb/gadget:804.
> Declaration is '.. c:function:: int usb_string (struct usb_device *dev, int index, char *buf, size_t size)'.
>
> I assume it is confused because we have documented both a function and a
> data type called "usb_string". The former in drivers/usb/core/message.c
> and the latter in include/linux/usb/gadget.h.
>
> There are about 46 references to the function and 105 to the struct.
> We could rename the function to usb_string_utf8 ...
But usb strings are not in utf8 format :)
As C can handle this just fine, odds are sphinx should also be able to
handle this?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: build warning for a long time
2024-10-11 6:31 ` Greg KH
@ 2024-10-11 6:38 ` Akira Yokosawa
2024-10-11 6:51 ` Akira Yokosawa
1 sibling, 0 replies; 4+ messages in thread
From: Akira Yokosawa @ 2024-10-11 6:38 UTC (permalink / raw)
To: greg; +Cc: corbet, linux-kernel, linux-next, sfr
> On Fri, Oct 11, 2024 at 05:24:42PM +1100, Stephen Rothwell wrote:
>> Hi all,
>>
>> From before the git era, an htmldocs build (if we had such a thing back
>> then) would complain like this:
>>
>> Documentation/driver-api/usb/usb:164: drivers/usb/core/message.c:968: WARNING: Duplicate C declaration, also defined at driver-api/usb/gadget:804.
>> Declaration is '.. c:function:: int usb_string (struct usb_device *dev, int index, char *buf, size_t size)'.
>>
>> I assume it is confused because we have documented both a function and a
>> data type called "usb_string". The former in drivers/usb/core/message.c
>> and the latter in include/linux/usb/gadget.h.
>>
>> There are about 46 references to the function and 105 to the struct.
>> We could rename the function to usb_string_utf8 ...
>
> But usb strings are not in utf8 format :)
>
> As C can handle this just fine, odds are sphinx should also be able to
> handle this?
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: build warning for a long time
2024-10-11 6:31 ` Greg KH
2024-10-11 6:38 ` Akira Yokosawa
@ 2024-10-11 6:51 ` Akira Yokosawa
1 sibling, 0 replies; 4+ messages in thread
From: Akira Yokosawa @ 2024-10-11 6:51 UTC (permalink / raw)
To: greg, sfr; +Cc: corbet, linux-kernel, linux-next
Hi,
Sorry for the premature reply I just sent...
On Fri, 11 Oct 2024 08:31:47 +0200, Greg KH wrote:
> On Fri, Oct 11, 2024 at 05:24:42PM +1100, Stephen Rothwell wrote:
>> Hi all,
>>
>> From before the git era, an htmldocs build (if we had such a thing back
>> then) would complain like this:
>>
>> Documentation/driver-api/usb/usb:164: drivers/usb/core/message.c:968: WARNING: Duplicate C declaration, also defined at driver-api/usb/gadget:804.
>> Declaration is '.. c:function:: int usb_string (struct usb_device *dev, int index, char *buf, size_t size)'.
>>
>> I assume it is confused because we have documented both a function and a
>> data type called "usb_string". The former in drivers/usb/core/message.c
>> and the latter in include/linux/usb/gadget.h.
>>
>> There are about 46 references to the function and 105 to the struct.
>> We could rename the function to usb_string_utf8 ...
>
> But usb strings are not in utf8 format :)
>
> As C can handle this just fine, odds are sphinx should also be able to
> handle this?
>
> thanks,
This is a well known issue of Sphinx, which is taking a looong time to be
properly fixed.
For your info, this is a short summary I posted last March:
https://lore.kernel.org/f735ce0b-db1e-49bc-86ac-b5ab8e4aec31@gmail.com/
I think we need to wait patiently for a fix(es) of Sphinx.
HTH,
Akira
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-11 6:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-11 6:24 linux-next: build warning for a long time Stephen Rothwell
2024-10-11 6:31 ` Greg KH
2024-10-11 6:38 ` Akira Yokosawa
2024-10-11 6:51 ` Akira Yokosawa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox