]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Added usb_string function to a namespace
authorKevin Paul Reddy Janagari <kevinpaul468@gmail.com>
Sat, 5 Apr 2025 16:51:16 +0000 (22:21 +0530)
committerJonathan Corbet <corbet@lwn.net>
Mon, 14 Apr 2025 16:35:44 +0000 (10:35 -0600)
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
Documentation/driver-api/usb/usb.rst

index 89f9c37bb979a4f6570821a4c06e223815503856..976fb42210623e8424229fb123f73e402bcf75a6 100644 (file)
@@ -161,6 +161,7 @@ rely on 64bit DMA to eliminate another kind of bounce buffer.
 .. kernel-doc:: drivers/usb/core/urb.c
    :export:
 
+.. c:namespace:: usb_core
 .. kernel-doc:: drivers/usb/core/message.c
    :export: