Commit 4b293492 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman

n_tty: Un-inline single-use functions

gcc will likely inline these single-use functions anyway; remove
inline modifier.
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19e2ad6a
...@@ -264,7 +264,7 @@ static void n_tty_check_throttle(struct tty_struct *tty) ...@@ -264,7 +264,7 @@ static void n_tty_check_throttle(struct tty_struct *tty)
__tty_set_flow_change(tty, 0); __tty_set_flow_change(tty, 0);
} }
static inline void n_tty_check_unthrottle(struct tty_struct *tty) static void n_tty_check_unthrottle(struct tty_struct *tty)
{ {
if (tty->driver->type == TTY_DRIVER_TYPE_PTY && if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
tty->link->ldisc->ops->write_wakeup == n_tty_write_wakeup) { tty->link->ldisc->ops->write_wakeup == n_tty_write_wakeup) {
...@@ -1110,7 +1110,7 @@ static void eraser(unsigned char c, struct tty_struct *tty) ...@@ -1110,7 +1110,7 @@ static void eraser(unsigned char c, struct tty_struct *tty)
* Locking: ctrl_lock * Locking: ctrl_lock
*/ */
static inline void isig(int sig, struct tty_struct *tty) static void isig(int sig, struct tty_struct *tty)
{ {
struct pid *tty_pgrp = tty_get_pgrp(tty); struct pid *tty_pgrp = tty_get_pgrp(tty);
if (tty_pgrp) { if (tty_pgrp) {
...@@ -1133,7 +1133,7 @@ static inline void isig(int sig, struct tty_struct *tty) ...@@ -1133,7 +1133,7 @@ static inline void isig(int sig, struct tty_struct *tty)
* Note: may get exclusive termios_rwsem if flushing input buffer * Note: may get exclusive termios_rwsem if flushing input buffer
*/ */
static inline void n_tty_receive_break(struct tty_struct *tty) static void n_tty_receive_break(struct tty_struct *tty)
{ {
struct n_tty_data *ldata = tty->disc_data; struct n_tty_data *ldata = tty->disc_data;
...@@ -1171,7 +1171,7 @@ static inline void n_tty_receive_break(struct tty_struct *tty) ...@@ -1171,7 +1171,7 @@ static inline void n_tty_receive_break(struct tty_struct *tty)
* private. * private.
*/ */
static inline void n_tty_receive_overrun(struct tty_struct *tty) static void n_tty_receive_overrun(struct tty_struct *tty)
{ {
struct n_tty_data *ldata = tty->disc_data; struct n_tty_data *ldata = tty->disc_data;
char buf[64]; char buf[64];
...@@ -1199,8 +1199,7 @@ static inline void n_tty_receive_overrun(struct tty_struct *tty) ...@@ -1199,8 +1199,7 @@ static inline void n_tty_receive_overrun(struct tty_struct *tty)
* caller holds non-exclusive termios_rwsem * caller holds non-exclusive termios_rwsem
* publishes read_head via put_tty_queue() * publishes read_head via put_tty_queue()
*/ */
static inline void n_tty_receive_parity_error(struct tty_struct *tty, static void n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c)
unsigned char c)
{ {
struct n_tty_data *ldata = tty->disc_data; struct n_tty_data *ldata = tty->disc_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment