Skip to content

Commit

Permalink
n_tty: Un-inline single-use functions
Browse files Browse the repository at this point in the history
gcc will likely inline these single-use functions anyway; remove
inline modifier.

Signed-off-by: Peter Hurley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
peterhurley authored and gregkh committed Jul 24, 2013
1 parent 19e2ad6 commit 4b29349
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/tty/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static void n_tty_check_throttle(struct tty_struct *tty)
__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 &&
tty->link->ldisc->ops->write_wakeup == n_tty_write_wakeup) {
Expand Down Expand Up @@ -1110,7 +1110,7 @@ static void eraser(unsigned char c, struct tty_struct *tty)
* 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);
if (tty_pgrp) {
Expand All @@ -1133,7 +1133,7 @@ static inline void isig(int sig, struct tty_struct *tty)
* 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;

Expand Down Expand Up @@ -1171,7 +1171,7 @@ static inline void n_tty_receive_break(struct tty_struct *tty)
* 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;
char buf[64];
Expand Down Expand Up @@ -1199,8 +1199,7 @@ static inline void n_tty_receive_overrun(struct tty_struct *tty)
* caller holds non-exclusive termios_rwsem
* publishes read_head via put_tty_queue()
*/
static inline void n_tty_receive_parity_error(struct tty_struct *tty,
unsigned char c)
static void n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c)
{
struct n_tty_data *ldata = tty->disc_data;

Expand Down

0 comments on commit 4b29349

Please sign in to comment.