Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3548e45c authored by Ben Dooks's avatar Ben Dooks Committed by Greg Kroah-Hartman
Browse files

serial: sirf: make fifo functions static



The fifo mask functions should be static as they are not
used outside of the driver. Fix the following warnings by
making them static:

drivers/tty/serial/sirfsoc_uart.h:109:5: warning: symbol 'uart_usp_ff_full_mask' was not declared. Should it be static?
drivers/tty/serial/sirfsoc_uart.h:117:5: warning: symbol 'uart_usp_ff_empty_mask' was not declared. Should it be static?

Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce871229
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ struct sirfsoc_uart_register {
	enum sirfsoc_uart_type uart_type;
};

u32 uart_usp_ff_full_mask(struct uart_port *port)
static u32 uart_usp_ff_full_mask(struct uart_port *port)
{
	u32 full_bit;

@@ -114,7 +114,7 @@ u32 uart_usp_ff_full_mask(struct uart_port *port)
	return (1 << full_bit);
}

u32 uart_usp_ff_empty_mask(struct uart_port *port)
static u32 uart_usp_ff_empty_mask(struct uart_port *port)
{
	u32 empty_bit;