summaryrefslogtreecommitdiffstats
path: root/drivers/tty/mxser.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-05-02 17:57:17 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-04 16:42:14 -0700
commite391edb727f51094582d39a29a94a83bc9c014e8 (patch)
tree099e0294f8e2b1e929a3ee083a65ac377641d967 /drivers/tty/mxser.c
parentf73fa05b90eb8c0dd3230c364cf1107f4f8f3848 (diff)
downloadop-kernel-dev-e391edb727f51094582d39a29a94a83bc9c014e8.zip
op-kernel-dev-e391edb727f51094582d39a29a94a83bc9c014e8.tar.gz
tty: mxser: local variables should not be exposed globally
The variable 'mxser_port_ops' is only referenced in this file and should be marked static to prevent it from being exposed globally. Quites the sparse warning: warning: symbol 'mxser_port_ops' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/mxser.c')
-rw-r--r--drivers/tty/mxser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c
index c6f372d..90cc680 100644
--- a/drivers/tty/mxser.c
+++ b/drivers/tty/mxser.c
@@ -2326,7 +2326,7 @@ static const struct tty_operations mxser_ops = {
.get_icount = mxser_get_icount,
};
-struct tty_port_operations mxser_port_ops = {
+static struct tty_port_operations mxser_port_ops = {
.carrier_raised = mxser_carrier_raised,
.dtr_rts = mxser_dtr_rts,
.activate = mxser_activate,
OpenPOWER on IntegriCloud