Skip to contentSkip to conversation

tty: add missing tty_driver include to tty_port.h

PATCH New Johan Hovold 1 participant 1 message May 6 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: add missing tty_driver include to tty_port.h

Include the definition of struct tty_driver in tty_port.h to keep the header self-contained and avoid build breakage in case anyone includes it before tty_driver.h.

Fixes eb3b0d92c9c3 ("tty: tty_port: add workqueue to flip TTY buffer")
Cc Xin Zhao <[email protected]>

---

The offending commit went into 7.1-rc1 so this could go into tty-linus.

Johan

 include/linux/tty_port.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/tty_port.h +1 -1
index d2a7882c0b58..23cad403bb8f 100644
@@ -6,10 +6,10 @@
 #include <linux/kref.h>
 #include <linux/mutex.h>
 #include <linux/tty_buffer.h>
+#include <linux/tty_driver.h>
 #include <linux/wait.h>
 
 struct attribute_group;
-struct tty_driver;
 struct tty_port;
 struct tty_struct;
 
Signature · 1 line
2.53.0