Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Added usb_string function to a namespace

with reference to WARNING:
Duplicate C declaration, also defined at driver-api/usb/gadget:804
There is a function usb_string in the file message.c,
there is also a struct usb_string in the kernel api headers.
The docs is unable to index the function as the index is occupied by struct
This fix adds messgae.c to the usb_core namespace (in docs) hence providing
usb_sting a unique index usb_core.usb_string()

Signed-off-by: Kevin Paul Reddy Janagari <kevinpaul468@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250405165116.147958-1-kevinpaul468@gmail.com

authored by

Kevin Paul Reddy Janagari and committed by
Jonathan Corbet
dd0808ab e54ac586

+1
+1
Documentation/driver-api/usb/usb.rst
··· 161 161 .. kernel-doc:: drivers/usb/core/urb.c 162 162 :export: 163 163 164 + .. c:namespace:: usb_core 164 165 .. kernel-doc:: drivers/usb/core/message.c 165 166 :export: 166 167