]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: fix kernel-doc section for usb_gpib_line_status() function
authorGaston Gonzalez <gascoar@gmail.com>
Wed, 5 Mar 2025 19:32:20 +0000 (16:32 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 14:03:48 +0000 (07:03 -0700)
commitf17cd486391cc24dcc3d4d63699721c6a7937b84
treeffb4810004143e73ad87e09484759775cd40ed32
parent4ec9b9b584c9b3e3515d4174aa815589e70e65aa
staging: gpib: fix kernel-doc section for usb_gpib_line_status() function

The function name field in the kernel-doc section for the
usb_gpib_line_status() is defined as 'line_status'. In addition, after
the kernel-doc section, there are three macro definition instead of the
function definition.

These issues trigger the warning:

warning: expecting prototype for line_status(). Prototype was for WQT()
instead.

Fix the warning by renaming the function in the kernel-doc section and
by moving the macros to the beginning of the file with the rest of
macros definition.

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/20250305193614.39604-7-gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c