Commit e391edb727f51094582d39a29a94a83bc9c014e8
Committed by
Greg Kroah-Hartman
1 parent
f73fa05b90
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/tty/mxser.c
... | ... | @@ -2326,7 +2326,7 @@ |
2326 | 2326 | .get_icount = mxser_get_icount, |
2327 | 2327 | }; |
2328 | 2328 | |
2329 | -struct tty_port_operations mxser_port_ops = { | |
2329 | +static struct tty_port_operations mxser_port_ops = { | |
2330 | 2330 | .carrier_raised = mxser_carrier_raised, |
2331 | 2331 | .dtr_rts = mxser_dtr_rts, |
2332 | 2332 | .activate = mxser_activate, |