mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[PATCH] kill _INLINE_
This patch removes all occurances of _INLINE_ in the kernel. With the exception of tty_flip.h, I've simply removed the inline's since gcc should know best which functions to be inlined. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
772a0dc5d2
commit
41c28ff163
12 changed files with 56 additions and 112 deletions
|
@ -248,17 +248,17 @@ static void sio_error(int *status)
|
|||
|
||||
#endif /* CONFIG_SERIAL_M32R_PLDSIO */
|
||||
|
||||
static _INLINE_ unsigned int sio_in(struct uart_sio_port *up, int offset)
|
||||
static unsigned int sio_in(struct uart_sio_port *up, int offset)
|
||||
{
|
||||
return __sio_in(up->port.iobase + offset);
|
||||
}
|
||||
|
||||
static _INLINE_ void sio_out(struct uart_sio_port *up, int offset, int value)
|
||||
static void sio_out(struct uart_sio_port *up, int offset, int value)
|
||||
{
|
||||
__sio_out(value, up->port.iobase + offset);
|
||||
}
|
||||
|
||||
static _INLINE_ unsigned int serial_in(struct uart_sio_port *up, int offset)
|
||||
static unsigned int serial_in(struct uart_sio_port *up, int offset)
|
||||
{
|
||||
if (!offset)
|
||||
return 0;
|
||||
|
@ -266,8 +266,7 @@ static _INLINE_ unsigned int serial_in(struct uart_sio_port *up, int offset)
|
|||
return __sio_in(offset);
|
||||
}
|
||||
|
||||
static _INLINE_ void
|
||||
serial_out(struct uart_sio_port *up, int offset, int value)
|
||||
static void serial_out(struct uart_sio_port *up, int offset, int value)
|
||||
{
|
||||
if (!offset)
|
||||
return;
|
||||
|
@ -326,8 +325,8 @@ static void m32r_sio_enable_ms(struct uart_port *port)
|
|||
serial_out(up, UART_IER, up->ier);
|
||||
}
|
||||
|
||||
static _INLINE_ void receive_chars(struct uart_sio_port *up, int *status,
|
||||
struct pt_regs *regs)
|
||||
static void receive_chars(struct uart_sio_port *up, int *status,
|
||||
struct pt_regs *regs)
|
||||
{
|
||||
struct tty_struct *tty = up->port.info->tty;
|
||||
unsigned char ch;
|
||||
|
@ -400,7 +399,7 @@ static _INLINE_ void receive_chars(struct uart_sio_port *up, int *status,
|
|||
tty_flip_buffer_push(tty);
|
||||
}
|
||||
|
||||
static _INLINE_ void transmit_chars(struct uart_sio_port *up)
|
||||
static void transmit_chars(struct uart_sio_port *up)
|
||||
{
|
||||
struct circ_buf *xmit = &up->port.info->xmit;
|
||||
int count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue