2015-11-25 17:52:28

by Alexander Kuleshov

[permalink] [raw]
Subject: [PATCH v2] drivers/tty/serial: make tegra_serial_handle_break() static

There are no callers of the tegra_serial_handle_break() function
outside of drivers/tty/serial/of_serial.c. So let's make it static.

Signed-off-by: Alexander Kuleshov <[email protected]>
---
Forgot Signed-off-by line

drivers/tty/serial/of_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index de50296..a35f694 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -34,7 +34,7 @@ struct of_serial_info {
};

#ifdef CONFIG_ARCH_TEGRA
-void tegra_serial_handle_break(struct uart_port *p)
+static void tegra_serial_handle_break(struct uart_port *p)
{
unsigned int status, tmout = 10000;

--
2.5.0


2015-12-13 06:51:27

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v2] drivers/tty/serial: make tegra_serial_handle_break() static

On Wed, Nov 25, 2015 at 11:50:03PM +0600, Alexander Kuleshov wrote:
> There are no callers of the tegra_serial_handle_break() function
> outside of drivers/tty/serial/of_serial.c. So let's make it static.
>
> Signed-off-by: Alexander Kuleshov <[email protected]>
> ---
> Forgot Signed-off-by line
>
> drivers/tty/serial/of_serial.c | 2 +-

This file is not in my tree anymore :(