summaryrefslogtreecommitdiff
path: root/drivers/tty/tty.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-10-22 21:29:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-03 03:58:03 +0300
commit5fd8c2d3de3dd3cc6d36a0c7a08e44cd5bf173e6 (patch)
treec1dd11d0d8a97d36a88c58c6a6964f06cbc26e9b /drivers/tty/tty.h
parent72da688b457d738b943016dabc603efb1be5f4e1 (diff)
downloadlinux-5fd8c2d3de3dd3cc6d36a0c7a08e44cd5bf173e6.tar.xz
tty: Move sysctl setup into "core" tty logic
In preparation for adding another sysctl to the tty subsystem, move the tty setup code into the "core" tty code, which contains tty_init() itself. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20221022182949.2684794-1-keescook@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty.h')
-rw-r--r--drivers/tty/tty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty.h b/drivers/tty/tty.h
index 1c08c9b67b16..f45cd683c02e 100644
--- a/drivers/tty/tty.h
+++ b/drivers/tty/tty.h
@@ -93,7 +93,7 @@ void tty_ldisc_release(struct tty_struct *tty);
int __must_check tty_ldisc_init(struct tty_struct *tty);
void tty_ldisc_deinit(struct tty_struct *tty);
-void tty_sysctl_init(void);
+extern int tty_ldisc_autoload;
/* tty_audit.c */
#ifdef CONFIG_AUDIT