tty: Don't include tty_buffer.h in tty.h
PATCH v2 1/1 tty: Don't include tty_buffer.h in tty.h
There's no need to include linux/tty_buffer.h in linux/tty.h. Move the include into tty_buffer.c that is actually using it.
Signed-off-by Ilpo Järvinen <[email protected]>
---
v2:
- Fixed shortlog to make sense
drivers/tty/tty_buffer.c | 1 + include/linux/tty.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
drivers/tty/tty_buffer.c +1 -0
@@ -7,6 +7,7 @@#include <linux/errno.h> #include <linux/minmax.h> #include <linux/tty.h> +#include <linux/tty_buffer.h> #include <linux/tty_driver.h> #include <linux/tty_flip.h> #include <linux/timer.h>
include/linux/tty.h +0 -1
@@ -6,7 +6,6 @@#include <linux/major.h> #include <linux/termios.h> #include <linux/workqueue.h> -#include <linux/tty_buffer.h> #include <linux/tty_driver.h> #include <linux/tty_ldisc.h> #include <linux/tty_port.h>
Signature · 1 line
2.39.2
Greg Kroah-Hartman
maintainerQuoted 7 lines · Ilpo Järvinen
There's no need to include
linux/tty_buffer.hinlinux/tty.h. Move the include intotty_buffer.cthat is actually using it.Signed-off-by Ilpo Järvinen <[email protected]>---
v2:
- Fixed shortlog to make sense
I didn't see a change in the shortlog, but hey, I trust you :)