Commit dd9f6114 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

tty: make tty_release_redirect() static

No one calls this outside of the tty_io.c file, so mark this static and
do not export the symbol anymore.

Cc: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20210408125134.3016837-11-gregkh@linuxfoundation.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c80c0b9
...@@ -547,7 +547,7 @@ EXPORT_SYMBOL_GPL(tty_wakeup); ...@@ -547,7 +547,7 @@ EXPORT_SYMBOL_GPL(tty_wakeup);
* This is available to the pty code so if the master closes, if the * This is available to the pty code so if the master closes, if the
* slave is a redirect it can release the redirect. * slave is a redirect it can release the redirect.
*/ */
struct file *tty_release_redirect(struct tty_struct *tty) static struct file *tty_release_redirect(struct tty_struct *tty)
{ {
struct file *f = NULL; struct file *f = NULL;
...@@ -560,7 +560,6 @@ struct file *tty_release_redirect(struct tty_struct *tty) ...@@ -560,7 +560,6 @@ struct file *tty_release_redirect(struct tty_struct *tty)
return f; return f;
} }
EXPORT_SYMBOL_GPL(tty_release_redirect);
/** /**
* __tty_hangup - actual handler for hangup events * __tty_hangup - actual handler for hangup events
......
...@@ -396,7 +396,6 @@ extern struct tty_struct *tty_kopen_shared(dev_t device); ...@@ -396,7 +396,6 @@ extern struct tty_struct *tty_kopen_shared(dev_t device);
extern void tty_kclose(struct tty_struct *tty); extern void tty_kclose(struct tty_struct *tty);
extern int tty_dev_name_to_number(const char *name, dev_t *number); extern int tty_dev_name_to_number(const char *name, dev_t *number);
extern ssize_t redirected_tty_write(struct kiocb *, struct iov_iter *); extern ssize_t redirected_tty_write(struct kiocb *, struct iov_iter *);
extern struct file *tty_release_redirect(struct tty_struct *tty);
#else #else
static inline void tty_kref_put(struct tty_struct *tty) static inline void tty_kref_put(struct tty_struct *tty)
{ } { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment