diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 06:47:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-17 22:34:47 -0500 |
commit | 0227abc9d011892fd13f360b56a7b276ebea8b07 (patch) | |
tree | 16fca2a098df3fc522820f8b0620c6cddeedf123 /drivers/net/usb | |
parent | de2f19daac017301b0bfd73bdecff89e7ea30eb7 (diff) |
drivers/net/usb: fix sparse warnings: Should it be static?
Impact: Make symbols static.
Fix this sparse warnings:
drivers/net/usb/hso.c:1249:6: warning: symbol 'hso_unthrottle_tasklet' was not declared. Should it be static?
drivers/net/usb/hso.c:1268:6: warning: symbol 'hso_unthrottle_workfunc' was not declared. Should it be static?
drivers/net/usb/hso.c:1466:5: warning: symbol 'tiocmget_submit_urb' was not declared. Should it be static?
drivers/net/usb/smsc95xx.c:62:5: warning: symbol 'turbo_mode' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/hso.c | 10 | ||||
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index e6d62fe405cd..a074c16e2a62 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -1246,7 +1246,7 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb) | |||
1246 | * This needs to be a tasklet otherwise we will | 1246 | * This needs to be a tasklet otherwise we will |
1247 | * end up recursively calling this function. | 1247 | * end up recursively calling this function. |
1248 | */ | 1248 | */ |
1249 | void hso_unthrottle_tasklet(struct hso_serial *serial) | 1249 | static void hso_unthrottle_tasklet(struct hso_serial *serial) |
1250 | { | 1250 | { |
1251 | unsigned long flags; | 1251 | unsigned long flags; |
1252 | 1252 | ||
@@ -1265,7 +1265,7 @@ static void hso_unthrottle(struct tty_struct *tty) | |||
1265 | tasklet_hi_schedule(&serial->unthrottle_tasklet); | 1265 | tasklet_hi_schedule(&serial->unthrottle_tasklet); |
1266 | } | 1266 | } |
1267 | 1267 | ||
1268 | void hso_unthrottle_workfunc(struct work_struct *work) | 1268 | static void hso_unthrottle_workfunc(struct work_struct *work) |
1269 | { | 1269 | { |
1270 | struct hso_serial *serial = | 1270 | struct hso_serial *serial = |
1271 | container_of(work, struct hso_serial, | 1271 | container_of(work, struct hso_serial, |
@@ -1464,9 +1464,9 @@ static int hso_serial_chars_in_buffer(struct tty_struct *tty) | |||
1464 | 1464 | ||
1465 | return chars; | 1465 | return chars; |
1466 | } | 1466 | } |
1467 | int tiocmget_submit_urb(struct hso_serial *serial, | 1467 | static int tiocmget_submit_urb(struct hso_serial *serial, |
1468 | struct hso_tiocmget *tiocmget, | 1468 | struct hso_tiocmget *tiocmget, |
1469 | struct usb_device *usb) | 1469 | struct usb_device *usb) |
1470 | { | 1470 | { |
1471 | int result; | 1471 | int result; |
1472 | 1472 | ||
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 5b0b9647382c..3e6155a38f0c 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -58,7 +58,7 @@ struct usb_context { | |||
58 | struct usbnet *dev; | 58 | struct usbnet *dev; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | int turbo_mode = true; | 61 | static int turbo_mode = true; |
62 | module_param(turbo_mode, bool, 0644); | 62 | module_param(turbo_mode, bool, 0644); |
63 | MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); | 63 | MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); |
64 | 64 | ||