Skip to content

Commit 3fe9f21

Browse files
Shraddha Barkegregkh
authored andcommitted
Staging: fwserial: Declare fwtty_port_get as static
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>
1 parent 5cb10d4 commit 3fe9f21

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/staging/fwserial/fwserial.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ static void fwtty_write_xchar(struct fwtty_port *port, char ch)
828828
rcu_read_unlock();
829829
}
830830

831-
struct fwtty_port *fwtty_port_get(unsigned index)
831+
static struct fwtty_port *fwtty_port_get(unsigned index)
832832
{
833833
struct fwtty_port *port;
834834

@@ -842,7 +842,6 @@ struct fwtty_port *fwtty_port_get(unsigned index)
842842
mutex_unlock(&port_table_lock);
843843
return port;
844844
}
845-
EXPORT_SYMBOL(fwtty_port_get);
846845

847846
static int fwtty_ports_add(struct fw_serial *serial)
848847
{

drivers/staging/fwserial/fwserial.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ static const char loop_dev_name[] = "fwloop";
341341

342342
extern struct tty_driver *fwtty_driver;
343343

344-
struct fwtty_port *fwtty_port_get(unsigned index);
345344
/*
346345
* Returns the max send async payload size in bytes based on the unit device
347346
* link speed. Self-limiting asynchronous bandwidth (via reducing the payload)

0 commit comments

Comments
 (0)