]> git.baikalelectronics.ru Git - kernel.git/commit
udc: lpc32xx: mark local function static
authorArnd Bergmann <arnd@arndb.de>
Tue, 30 Jun 2020 11:45:21 +0000 (13:45 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 6 Jul 2020 15:44:01 +0000 (17:44 +0200)
commit65861933ae2f5d6b1dd14e0b6c71781f460e3481
treeab8f5cf3e208eb08c5960f10b908507372aa84f2
parent239bea99f45907d04135ef7b506467c1835f59f6
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 6a44c630baf6 ("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 <lkp@intel.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/usb/gadget/udc/lpc32xx_udc.c