mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
tty: Eliminate global symbol tty_ldisc_N_TTY
Reduce global tty symbols; move and rename tty_ldisc_begin() as n_tty_init() and redefine the N_TTY ldisc ops as file scope. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d1d027eff5
commit
27228732aa
4 changed files with 10 additions and 13 deletions
|
@ -576,7 +576,6 @@ extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
|
|||
extern void tty_ldisc_release(struct tty_struct *tty);
|
||||
extern void tty_ldisc_init(struct tty_struct *tty);
|
||||
extern void tty_ldisc_deinit(struct tty_struct *tty);
|
||||
extern void tty_ldisc_begin(void);
|
||||
|
||||
static inline int tty_ldisc_receive_buf(struct tty_ldisc *ld, unsigned char *p,
|
||||
char *f, int count)
|
||||
|
@ -593,8 +592,8 @@ static inline int tty_ldisc_receive_buf(struct tty_ldisc *ld, unsigned char *p,
|
|||
|
||||
|
||||
/* n_tty.c */
|
||||
extern struct tty_ldisc_ops tty_ldisc_N_TTY;
|
||||
extern void n_tty_inherit_ops(struct tty_ldisc_ops *ops);
|
||||
extern void __init n_tty_init(void);
|
||||
|
||||
/* tty_audit.c */
|
||||
#ifdef CONFIG_AUDIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue