Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: udc: lpc32xx_udc: Staticify 2 local functions

These are not used outside of this sourcefile, so make them static.

Fixes the following W=1 kernel build warning(s):

drivers/usb/gadget/udc/lpc32xx_udc.c:1929:6: warning: no previous prototype for ‘udc_send_in_zlp’ [-Wmissing-prototypes]
1929 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
| ^~~~~~~~~~~~~~~
drivers/usb/gadget/udc/lpc32xx_udc.c:1943:6: warning: no previous prototype for ‘udc_handle_eps’ [-Wmissing-prototypes]
1943 | void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep)
| ^~~~~~~~~~~~~~

Cc: Felipe Balbi <balbi@kernel.org>
Cc: Sylvain Lemieux <slemieux.tyco@gmail.com>
Cc: Kevin Wells <kevin.wells@nxp.com>
Cc: Roland Stigge <stigge@antcom.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://lore.kernel.org/r/20200706133341.476881-13-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
120d91da 8f9a0e10

+2 -2
+2 -2
drivers/usb/gadget/udc/lpc32xx_udc.c
··· 1926 1926 }; 1927 1927 1928 1928 /* 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) 1930 1930 { 1931 1931 /* Clear EP status */ 1932 1932 udc_clearep_getsts(udc, ep->hwep_num); ··· 1940 1940 * This function will only be called when a delayed ZLP needs to be sent out 1941 1941 * after a DMA transfer has filled both buffers. 1942 1942 */ 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) 1944 1944 { 1945 1945 u32 epstatus; 1946 1946 struct lpc32xx_request *req;