public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* 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

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