]> git.baikalelectronics.ru Git - kernel.git/commit
tty: mxser: local variables should not be exposed globally
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 3 May 2012 00:57:17 +0000 (17:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 May 2012 23:42:14 +0000 (16:42 -0700)
commitf2c6e29b875e16673e1e67ebda0b407b9f6d8166
tree099e0294f8e2b1e929a3ee083a65ac377641d967
parent97291f97febcf59ee56e9ec81371728beeb0f2c8
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>
drivers/tty/mxser.c