udc: lpc32xx: mark local function static
Subsystems (2)
PATCH 1/1 udc: lpc32xx: mark local function static
The kernel test robot reports two functions that should be marked static:
Quoted 1 line
Quoted 1 line
drivers/usb/gadget/udc/lpc32xx_udc.c:1928:6: warning: no previous prototype for 'udc_send_in_zlp' [-Wmissing-prototypes]
1928 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
Quoted 1 line
Quoted 1 line
drivers/usb/gadget/udc/lpc32xx_udc.c:1942:6: warning: no previous prototype for 'udc_handle_eps' [-Wmissing-prototypes]
1942 | void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
This showed up after my commit 792e559e94bc ("udc: lpc32xx: fix 64-bit compiler warning") made it possible to build the driver on x86-64.
Fix the warning as suggested.
--- drivers/usb/gadget/udc/lpc32xx_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/udc/lpc32xx_udc.c +2 -2
@@ -1926,7 +1926,7 @@ static const struct usb_ep_ops lpc32xx_ep_ops = { };/* Send a ZLP on a non-0 IN EP */ -void udc_send_in_zlp (struct lpc32xx_udc *udc,struct lpc32xx_ep *ep) +static void udc_send_in_zlp (struct lpc32xx_udc *udc,struct lpc32xx_ep *ep) {/* Clear EP status */ udc_clearep_getsts (udc, ep->hwep_num);
@@ -1940,7 +1940,7 @@ void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)* This function will only be called when a delayed ZLP needs to be sent out * after a DMA transfer has filled both buffers. */ -void udc_handle_eps (struct lpc32xx_udc *udc,struct lpc32xx_ep *ep) +static void udc_handle_eps (struct lpc32xx_udc *udc,struct lpc32xx_ep *ep) {u32 epstatus;struct lpc32xx_request *req;
Signature · 1 line
2.27.0
Hi Arnd, thank you for the patch.
Quoted 8 lines · Arnd Bergmann
The kernel test robot reports two functions that should be marked static:
Quoted 1 line
Quoted 1 line
drivers/usb/gadget/udc/lpc32xx_udc.c:1928:6: warning: no previous prototype for 'udc_send_in_zlp' [-Wmissing-prototypes]1928 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)Quoted 1 line
Quoted 1 line
drivers/usb/gadget/udc/lpc32xx_udc.c:1942:6: warning: no previous prototype for 'udc_handle_eps' [-Wmissing-prototypes]1942 | void
udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
Quoted 7 lines
This showed up after my commit
792e559e94bc("udc: lpc32xx: fix 64-bit compiler warning") made it possible to build the driver on x86-64.Fix the warning as suggested.
Reported-by kernel test robot <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
--
Best wishes,
Vladimir
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Arnd Bergmann
AppliedQuoted 15 lines · Vladimir Zapolskiy
Hi Arnd, thank you for the patch.
Quoted 11 lines · Arnd Bergmann
The kernel test robot reports two functions that should be marked static:
Quoted 1 line
Quoted 1 line
drivers/usb/gadget/udc/lpc32xx_udc.c:1928:6: warning: no previous prototype for 'udc_send_in_zlp' [-Wmissing-prototypes]1928 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)Quoted 1 line
Quoted 1 line
drivers/usb/gadget/udc/lpc32xx_udc.c:1942:6: warning: no previous prototype for 'udc_handle_eps' [-Wmissing-prototypes]1942 | void
udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)This showed up after my commit
792e559e94bc("udc: lpc32xx: fix 64-bit compiler warning") made it possible to build the driver on x86-64.
Quoted 6 lines
Quoted 4 lines
Fix the warning as suggested.
Reported-by kernel test robot <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
Applied to arm/soc branch now.
Arnd