Commit 0227abc9 authored by Hannes Eder's avatar Hannes Eder Committed by David S. Miller

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: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de2f19da
...@@ -1246,7 +1246,7 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb) ...@@ -1246,7 +1246,7 @@ static void hso_std_serial_read_bulk_callback(struct urb *urb)
* This needs to be a tasklet otherwise we will * This needs to be a tasklet otherwise we will
* end up recursively calling this function. * end up recursively calling this function.
*/ */
void hso_unthrottle_tasklet(struct hso_serial *serial) static void hso_unthrottle_tasklet(struct hso_serial *serial)
{ {
unsigned long flags; unsigned long flags;
...@@ -1265,7 +1265,7 @@ static void hso_unthrottle(struct tty_struct *tty) ...@@ -1265,7 +1265,7 @@ static void hso_unthrottle(struct tty_struct *tty)
tasklet_hi_schedule(&serial->unthrottle_tasklet); tasklet_hi_schedule(&serial->unthrottle_tasklet);
} }
void hso_unthrottle_workfunc(struct work_struct *work) static void hso_unthrottle_workfunc(struct work_struct *work)
{ {
struct hso_serial *serial = struct hso_serial *serial =
container_of(work, struct hso_serial, container_of(work, struct hso_serial,
...@@ -1464,9 +1464,9 @@ static int hso_serial_chars_in_buffer(struct tty_struct *tty) ...@@ -1464,9 +1464,9 @@ static int hso_serial_chars_in_buffer(struct tty_struct *tty)
return chars; return chars;
} }
int tiocmget_submit_urb(struct hso_serial *serial, static int tiocmget_submit_urb(struct hso_serial *serial,
struct hso_tiocmget *tiocmget, struct hso_tiocmget *tiocmget,
struct usb_device *usb) struct usb_device *usb)
{ {
int result; int result;
......
...@@ -58,7 +58,7 @@ struct usb_context { ...@@ -58,7 +58,7 @@ struct usb_context {
struct usbnet *dev; struct usbnet *dev;
}; };
int turbo_mode = true; static int turbo_mode = true;
module_param(turbo_mode, bool, 0644); module_param(turbo_mode, bool, 0644);
MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment