projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/usb/gadget/tcm_usb_gadget.c
b/drivers/usb/gadget/tcm_usb_gadget.c
index 6c3d7950d2a9e56d5231938493127c0964f04221..0f8aad78b54f7095a26b6e413a22ff5ae1e016df 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;