aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_tty.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-07-24 08:29:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 12:29:12 -0400
commit4b293492ae9ca87b4410fafae1fe2ea6eafb3c87 (patch)
treedcd844d22455f5bca6f7a87f7933942a1b154ce0 /drivers/tty/n_tty.c
parent19e2ad6a09f0c06dbca19c98e5f4584269d913dd (diff)
n_tty: Un-inline single-use functions
gcc will likely inline these single-use functions anyway; remove inline modifier. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r--drivers/tty/n_tty.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index f66d95f949d1..735826359a66 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -264,7 +264,7 @@ static void n_tty_check_throttle(struct tty_struct *tty)
264 __tty_set_flow_change(tty, 0); 264 __tty_set_flow_change(tty, 0);
265} 265}
266 266
267static inline void n_tty_check_unthrottle(struct tty_struct *tty) 267static void n_tty_check_unthrottle(struct tty_struct *tty)
268{ 268{
269 if (tty->driver->type == TTY_DRIVER_TYPE_PTY && 269 if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
270 tty->link->ldisc->ops->write_wakeup == n_tty_write_wakeup) { 270 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 * Locking: ctrl_lock 1110 * Locking: ctrl_lock
1111 */ 1111 */
1112 1112
1113static inline void isig(int sig, struct tty_struct *tty) 1113static void isig(int sig, struct tty_struct *tty)
1114{ 1114{
1115 struct pid *tty_pgrp = tty_get_pgrp(tty); 1115 struct pid *tty_pgrp = tty_get_pgrp(tty);
1116 if (tty_pgrp) { 1116 if (tty_pgrp) {
@@ -1133,7 +1133,7 @@ static inline void isig(int sig, struct tty_struct *tty)
1133 * Note: may get exclusive termios_rwsem if flushing input buffer 1133 * Note: may get exclusive termios_rwsem if flushing input buffer
1134 */ 1134 */
1135 1135
1136static inline void n_tty_receive_break(struct tty_struct *tty) 1136static void n_tty_receive_break(struct tty_struct *tty)
1137{ 1137{
1138 struct n_tty_data *ldata = tty->disc_data; 1138 struct n_tty_data *ldata = tty->disc_data;
1139 1139
@@ -1171,7 +1171,7 @@ static inline void n_tty_receive_break(struct tty_struct *tty)
1171 * private. 1171 * private.
1172 */ 1172 */
1173 1173
1174static inline void n_tty_receive_overrun(struct tty_struct *tty) 1174static void n_tty_receive_overrun(struct tty_struct *tty)
1175{ 1175{
1176 struct n_tty_data *ldata = tty->disc_data; 1176 struct n_tty_data *ldata = tty->disc_data;
1177 char buf[64]; 1177 char buf[64];
@@ -1199,8 +1199,7 @@ static inline void n_tty_receive_overrun(struct tty_struct *tty)
1199 * caller holds non-exclusive termios_rwsem 1199 * caller holds non-exclusive termios_rwsem
1200 * publishes read_head via put_tty_queue() 1200 * publishes read_head via put_tty_queue()
1201 */ 1201 */
1202static inline void n_tty_receive_parity_error(struct tty_struct *tty, 1202static void n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c)
1203 unsigned char c)
1204{ 1203{
1205 struct n_tty_data *ldata = tty->disc_data; 1204 struct n_tty_data *ldata = tty->disc_data;
1206 1205