projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b12e3
)
usb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static
author
Felipe Balbi
<balbi@ti.com>
Mon, 25 Nov 2013 17:19:41 +0000
(11:19 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 25 Nov 2013 17:19:41 +0000
(11:19 -0600)
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>
drivers/usb/gadget/tcm_usb_gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/tcm_usb_gadget.c
b/drivers/usb/gadget/tcm_usb_gadget.c
index
6c3d795
..
0f8aad7
100644
(file)
--- 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;