]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tty: move N_TTY_BUF_SIZE to n_tty
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 17 Mar 2025 07:00:19 +0000 (08:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:00:50 +0000 (08:00 -0700)
"N_TTY_BUF_SIZE" is private to n_tty and shall not be exposed to the
world. Definitely not in tty.h somewhere in the middle of "struct
tty_struct".

This is a remnant of moving "read_flags" to "struct n_tty_data" in
commit 3fe780b379fa ("TTY: move ldisc data from tty_struct: bitmaps").
But some cleanup was needed first (in previous patches).

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250317070046.24386-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
include/linux/tty.h

index 5e9ca4376d686e34395958d0e3595aab4df89be2..2c5995019dd1a0965d32d776ab7e86d3fbb52a6c 100644 (file)
@@ -56,6 +56,8 @@
  */
 #define WAKEUP_CHARS 256
 
+#define N_TTY_BUF_SIZE 4096
+
 /*
  * This defines the low- and high-watermarks for throttling and
  * unthrottling the TTY driver.  These watermarks are used for
index 6bb4fb3845f0afdf1edaabf8161a64fd35169776..0a46e4054dec78f80e3476b055b6a62941234213 100644 (file)
@@ -239,7 +239,6 @@ struct tty_struct {
 
        struct list_head tty_files;
 
-#define N_TTY_BUF_SIZE 4096
        struct work_struct SAK_work;
 } __randomize_layout;