[PATCH] serial: 8250_hub6: add missing include for hub6_match_port()

From: Hugo Villeneuve

Date: Mon Jul 13 2026 - 21:26:30 EST


From: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>

Add missing include to fix compile warning:

drivers/tty/serial/8250/8250_hub6.c:44:6: warning: no previous prototype for
'hub6_match_port' [-Wmissing-prototypes]

Fixes: 3d406299d882 ("serial: 8250_hub6: add hub6_match_port()")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202607110715.VGT2dVVz-lkp@xxxxxxxxx/
Closes: https://lore.kernel.org/oe-kbuild-all/202607111219.QG9uOW8H-lkp@xxxxxxxxx/
Signed-off-by: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>
---
Not CCing stable as commit is still in Greg's tty-next tree
---
drivers/tty/serial/8250/8250_hub6.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_hub6.c b/drivers/tty/serial/8250/8250_hub6.c
index eae32c924e29b..b6767633c966c 100644
--- a/drivers/tty/serial/8250/8250_hub6.c
+++ b/drivers/tty/serial/8250/8250_hub6.c
@@ -7,6 +7,8 @@
#include <linux/init.h>
#include <linux/serial_8250.h>

+#include "8250.h"
+
#define HUB6(card, port) \
{ \
.iobase = 0x302, \

base-commit: c1d4ce2d9eaeccd7e8aef7ec1109df49eaf4f503
--
2.47.3