--- zzzz-none-000/linux-4.9.276/fs/proc/proc_tty.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5590-750/linux-4.9.276/fs/proc/proc_tty.c 2023-04-19 08:56:16.000000000 +0000 @@ -144,7 +144,10 @@ void proc_tty_register_driver(struct tty_driver *driver) { struct proc_dir_entry *ent; - + + if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + return; + if (!driver->driver_name || driver->proc_entry || !driver->ops->proc_fops) return; @@ -161,6 +164,9 @@ { struct proc_dir_entry *ent; + if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + return; + ent = driver->proc_entry; if (!ent) return; @@ -175,6 +181,9 @@ */ void __init proc_tty_init(void) { + if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + return; + if (!proc_mkdir("tty", NULL)) return; proc_mkdir("tty/ldisc", NULL); /* Preserved: it's userspace visible */