Skip to content

Commit f1a0a99

Browse files
committed
udc: lpc32xx: mark local function static
The kernel test robot reports two functions that should be marked static: >> 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) >> 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 792e559 ("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]> Acked-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 4877846 commit f1a0a99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/gadget/udc/lpc32xx_udc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,7 @@ static const struct usb_ep_ops lpc32xx_ep_ops = {
19261926
};
19271927

19281928
/* Send a ZLP on a non-0 IN EP */
1929-
void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
1929+
static void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
19301930
{
19311931
/* Clear EP status */
19321932
udc_clearep_getsts(udc, ep->hwep_num);
@@ -1940,7 +1940,7 @@ void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
19401940
* This function will only be called when a delayed ZLP needs to be sent out
19411941
* after a DMA transfer has filled both buffers.
19421942
*/
1943-
void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
1943+
static void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
19441944
{
19451945
u32 epstatus;
19461946
struct lpc32xx_request *req;

0 commit comments

Comments
 (0)