diff options
author | Arvid Brodin <arvid.brodin@xdin.com> | 2013-01-27 10:41:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-30 00:17:38 -0500 |
commit | de9c6307c0cdf24a08facbc808fe3989a145c93a (patch) | |
tree | 54f74c09e4539b5d8e90c28a2a1cceb04fb68911 | |
parent | 6992819feb39cb9adac72170555d957d07f869f2 (diff) |
usb/isp1760: declare schedule_ptds() and errata2_function() static
Fix two problems detected by the sparse code analyser:
|drivers/usb/host/isp1760-hcd.c:935:6: warning: symbol 'schedule_ptds' was not declared. Should it be static?
|drivers/usb/host/isp1760-hcd.c:1288:6: warning: symbol 'errata2_function' was not declared. Should it be static?
Signed-off-by: Arvid Brodin <arvid.brodin@xdin.com>
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/isp1760-hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c index a35bbddf8968..125e261f5bfc 100644 --- a/drivers/usb/host/isp1760-hcd.c +++ b/drivers/usb/host/isp1760-hcd.c | |||
@@ -932,7 +932,7 @@ static void enqueue_qtds(struct usb_hcd *hcd, struct isp1760_qh *qh) | |||
932 | } | 932 | } |
933 | } | 933 | } |
934 | 934 | ||
935 | void schedule_ptds(struct usb_hcd *hcd) | 935 | static void schedule_ptds(struct usb_hcd *hcd) |
936 | { | 936 | { |
937 | struct isp1760_hcd *priv; | 937 | struct isp1760_hcd *priv; |
938 | struct isp1760_qh *qh, *qh_next; | 938 | struct isp1760_qh *qh, *qh_next; |
@@ -1285,7 +1285,7 @@ leave: | |||
1285 | #define SLOT_CHECK_PERIOD 200 | 1285 | #define SLOT_CHECK_PERIOD 200 |
1286 | static struct timer_list errata2_timer; | 1286 | static struct timer_list errata2_timer; |
1287 | 1287 | ||
1288 | void errata2_function(unsigned long data) | 1288 | static void errata2_function(unsigned long data) |
1289 | { | 1289 | { |
1290 | struct usb_hcd *hcd = (struct usb_hcd *) data; | 1290 | struct usb_hcd *hcd = (struct usb_hcd *) data; |
1291 | struct isp1760_hcd *priv = hcd_to_priv(hcd); | 1291 | struct isp1760_hcd *priv = hcd_to_priv(hcd); |