diff options
author | Felipe Balbi <balbi@ti.com> | 2013-11-25 11:19:41 -0600 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-25 11:19:41 -0600 |
commit | 3f79265c964ed501cd61eddfc893262d04a6aa4a (patch) | |
tree | df8fd8f35d1fa9ac1bfc452e236e175ed78dd6b0 /drivers/usb/gadget/tcm_usb_gadget.c | |
parent | 63b12e3ecebd2904ee2e6c59911c7a44a0b18fa5 (diff) | |
download | op-kernel-dev-3f79265c964ed501cd61eddfc893262d04a6aa4a.zip op-kernel-dev-3f79265c964ed501cd61eddfc893262d04a6aa4a.tar.gz |
usb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static
that symbol is only used inside this function driver,
we should mark it static. Fixes sparse's:
drivers/usb/gadget/tcm_usb_gadget.c:373:6: warning: symbol \
'bot_cleanup_old_alt' was not declared. Should it \
be static?
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/tcm_usb_gadget.c')
-rw-r--r-- | drivers/usb/gadget/tcm_usb_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c index 6c3d795..0f8aad7 100644 --- a/drivers/usb/gadget/tcm_usb_gadget.c +++ b/drivers/usb/gadget/tcm_usb_gadget.c @@ -370,7 +370,7 @@ err: return -ENOMEM; } -void bot_cleanup_old_alt(struct f_uas *fu) +static void bot_cleanup_old_alt(struct f_uas *fu) { if (!(fu->flags & USBG_ENABLED)) return; |