diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-04 23:12:42 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-08-09 09:33:36 -0400 |
commit | bf19647d8f19e89bdf94eef387cfc3825bb48d7f (patch) | |
tree | 3724a3ef4b44b11cbc7a8c230595d2404f6cff1b | |
parent | 136c489b1cdcaad8f3da31298b839b5861d9de6d (diff) |
usb: gadget: rndis: Staticize rndis_init()/rndis_exit()
rndis_init() and rndis_exit() are used only in this file.
Fix the following sparse warnings:
drivers/usb/gadget/rndis.c:1145:5: warning: symbol 'rndis_init' was not declared. Should it be static?
drivers/usb/gadget/rndis.c:1179:6: warning: symbol 'rndis_exit' was not declared. Should it be static?
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/rndis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index 3e3ea7203030..9575085ded81 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c | |||
@@ -1142,7 +1142,7 @@ static struct proc_dir_entry *rndis_connect_state [RNDIS_MAX_CONFIGS]; | |||
1142 | #endif /* CONFIG_USB_GADGET_DEBUG_FILES */ | 1142 | #endif /* CONFIG_USB_GADGET_DEBUG_FILES */ |
1143 | 1143 | ||
1144 | 1144 | ||
1145 | int rndis_init(void) | 1145 | static int rndis_init(void) |
1146 | { | 1146 | { |
1147 | u8 i; | 1147 | u8 i; |
1148 | 1148 | ||
@@ -1176,7 +1176,7 @@ int rndis_init(void) | |||
1176 | } | 1176 | } |
1177 | module_init(rndis_init); | 1177 | module_init(rndis_init); |
1178 | 1178 | ||
1179 | void rndis_exit(void) | 1179 | static void rndis_exit(void) |
1180 | { | 1180 | { |
1181 | #ifdef CONFIG_USB_GADGET_DEBUG_FILES | 1181 | #ifdef CONFIG_USB_GADGET_DEBUG_FILES |
1182 | u8 i; | 1182 | u8 i; |