mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
tty: Make tty_paranoia_check() file scope
tty_paranoia_check() is only used within drivers/tty/tty_io.c; remove extern declaration in header and limit symbol to 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
998b4a4571
commit
82b8f888e9
2 changed files with 1 additions and 3 deletions
|
@ -256,7 +256,7 @@ const char *tty_name(const struct tty_struct *tty)
|
||||||
|
|
||||||
EXPORT_SYMBOL(tty_name);
|
EXPORT_SYMBOL(tty_name);
|
||||||
|
|
||||||
int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
|
static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
|
||||||
const char *routine)
|
const char *routine)
|
||||||
{
|
{
|
||||||
#ifdef TTY_PARANOIA_CHECK
|
#ifdef TTY_PARANOIA_CHECK
|
||||||
|
|
|
@ -419,8 +419,6 @@ static inline struct tty_struct *tty_kref_get(struct tty_struct *tty)
|
||||||
return tty;
|
return tty;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
|
|
||||||
const char *routine);
|
|
||||||
extern const char *tty_name(const struct tty_struct *tty);
|
extern const char *tty_name(const struct tty_struct *tty);
|
||||||
extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
|
extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
|
||||||
extern int __tty_check_change(struct tty_struct *tty, int sig);
|
extern int __tty_check_change(struct tty_struct *tty, int sig);
|
||||||
|
|
Loading…
Add table
Reference in a new issue