]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: fwserial: Declare fwtty_port_get as static
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 7 Nov 2015 03:52:55 +0000 (09:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 07:13:35 +0000 (23:13 -0800)
Declare the function fwtty_port_get as static since it is used
only in this particular file. Also remove the corresponding
declaration from header file.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c
drivers/staging/fwserial/fwserial.h

index b676c486cb1895e9963fb8b309e033a2130e3019..e481d3230f8666129726650aa1f9f2fe6adb69af 100644 (file)
@@ -828,7 +828,7 @@ static void fwtty_write_xchar(struct fwtty_port *port, char ch)
        rcu_read_unlock();
 }
 
-struct fwtty_port *fwtty_port_get(unsigned index)
+static struct fwtty_port *fwtty_port_get(unsigned index)
 {
        struct fwtty_port *port;
 
@@ -842,7 +842,6 @@ struct fwtty_port *fwtty_port_get(unsigned index)
        mutex_unlock(&port_table_lock);
        return port;
 }
-EXPORT_SYMBOL(fwtty_port_get);
 
 static int fwtty_ports_add(struct fw_serial *serial)
 {
index e13fe33a689741d1e4dd0338c8f4a82131be7c9a..6fa936501b3f55e0669df1ac4c4f29d04d1409c6 100644 (file)
@@ -341,7 +341,6 @@ static const char loop_dev_name[] = "fwloop";
 
 extern struct tty_driver *fwtty_driver;
 
-struct fwtty_port *fwtty_port_get(unsigned index);
 /*
  * Returns the max send async payload size in bytes based on the unit device
  * link speed. Self-limiting asynchronous bandwidth (via reducing the payload)