Skip to content

Commit d2e38e7

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
tty: move N_TTY_BUF_SIZE to n_tty
"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 3fe780b ("TTY: move ldisc data from tty_struct: bitmaps"). But some cleanup was needed first (in previous patches). Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0738abc commit d2e38e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/tty/n_tty.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
*/
5757
#define WAKEUP_CHARS 256
5858

59+
#define N_TTY_BUF_SIZE 4096
60+
5961
/*
6062
* This defines the low- and high-watermarks for throttling and
6163
* unthrottling the TTY driver. These watermarks are used for

include/linux/tty.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ struct tty_struct {
239239

240240
struct list_head tty_files;
241241

242-
#define N_TTY_BUF_SIZE 4096
243242
struct work_struct SAK_work;
244243
} __randomize_layout;
245244

0 commit comments

Comments
 (0)