aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r--include/linux/tty.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 405a9035fe40..6abfcf5b5887 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -350,8 +350,6 @@ extern void tty_write_flush(struct tty_struct *);
350 350
351extern struct ktermios tty_std_termios; 351extern struct ktermios tty_std_termios;
352 352
353extern int kmsg_redirect;
354
355extern void console_init(void); 353extern void console_init(void);
356extern int vcs_init(void); 354extern int vcs_init(void);
357 355
@@ -466,7 +464,7 @@ extern int tty_port_alloc_xmit_buf(struct tty_port *port);
466extern void tty_port_free_xmit_buf(struct tty_port *port); 464extern void tty_port_free_xmit_buf(struct tty_port *port);
467extern void tty_port_put(struct tty_port *port); 465extern void tty_port_put(struct tty_port *port);
468 466
469extern inline struct tty_port *tty_port_get(struct tty_port *port) 467static inline struct tty_port *tty_port_get(struct tty_port *port)
470{ 468{
471 if (port) 469 if (port)
472 kref_get(&port->kref); 470 kref_get(&port->kref);
@@ -488,7 +486,7 @@ extern void tty_port_close(struct tty_port *port,
488 struct tty_struct *tty, struct file *filp); 486 struct tty_struct *tty, struct file *filp);
489extern int tty_port_open(struct tty_port *port, 487extern int tty_port_open(struct tty_port *port,
490 struct tty_struct *tty, struct file *filp); 488 struct tty_struct *tty, struct file *filp);
491extern inline int tty_port_users(struct tty_port *port) 489static inline int tty_port_users(struct tty_port *port)
492{ 490{
493 return port->count + port->blocked_open; 491 return port->count + port->blocked_open;
494} 492}