Re: [PATCH] fixed documentation warning about duplicate symbol

From: Greg KH
Date: Sat Sep 30 2023 - 09:31:54 EST


On Sat, Sep 30, 2023 at 06:04:49PM +0530, Abhinav wrote:
> Compiling the documentation in html gives a warning about duplicate symbol
> because same name is used for function usb_string(...) and
> also for the struct usb_string.Also having a different name can
> be helpful while searching or debugging the code.
>
> Renaming the function usb_string(...) to utf16le_to_utf8(...) fixes
> this warning.Reason for choosing this name because
> this is what the function description says it is doing.

Odd trailing spaces, why?

Anyway, sorry, but that's a horrible function name for a usb core
function, especially just for a documentation warning? Surely the
documentation tools can determine the difference between a structure
name and a function name? This can't be the only place this has ever
happened, right?

Try fixing the documentation tools instead?

thanks,

greg k-h