mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-09 02:51:20 +00:00
tty: undo export of tty_open_by_driver
Since we have tty_kopen, we no longer need to export tty_open_by_driver. This patch makes this function static. Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
084a473532
commit
a033c3b10a
@ -1885,7 +1885,7 @@ EXPORT_SYMBOL_GPL(tty_kopen);
|
||||
* - concurrent tty driver removal w/ lookup
|
||||
* - concurrent tty removal from driver table
|
||||
*/
|
||||
struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode,
|
||||
static struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode,
|
||||
struct file *filp)
|
||||
{
|
||||
struct tty_struct *tty;
|
||||
@ -1936,7 +1936,6 @@ out:
|
||||
tty_driver_kref_put(driver);
|
||||
return tty;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(tty_open_by_driver);
|
||||
|
||||
/**
|
||||
* tty_open - open a tty device
|
||||
|
@ -401,8 +401,6 @@ extern struct tty_struct *get_current_tty(void);
|
||||
/* tty_io.c */
|
||||
extern int __init tty_init(void);
|
||||
extern const char *tty_name(const struct tty_struct *tty);
|
||||
extern struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode,
|
||||
struct file *filp);
|
||||
extern struct tty_struct *tty_kopen(dev_t device);
|
||||
extern void tty_kclose(struct tty_struct *tty);
|
||||
extern int tty_dev_name_to_number(const char *name, dev_t *number);
|
||||
@ -426,9 +424,6 @@ static inline int __init tty_init(void)
|
||||
{ return 0; }
|
||||
static inline const char *tty_name(const struct tty_struct *tty)
|
||||
{ return "(none)"; }
|
||||
static inline struct tty_struct *tty_open_by_driver(dev_t device,
|
||||
struct inode *inode, struct file *filp)
|
||||
{ return NULL; }
|
||||
static inline struct tty_struct *tty_kopen(dev_t device)
|
||||
{ return ERR_PTR(-ENODEV); }
|
||||
static inline void tty_kclose(struct tty_struct *tty)
|
||||
|
Loading…
Reference in New Issue
Block a user