Skip to content

Commit

Permalink
serial: sirf: make fifo functions static
Browse files Browse the repository at this point in the history
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: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ben Dooks authored and Greg Kroah-Hartman committed Jun 25, 2016
1 parent ce87122 commit 3548e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/serial/sirfsoc_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ 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;

full_bit = ilog2(port->fifosize);
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;

Expand Down

0 comments on commit 3548e45

Please sign in to comment.