Re: [PATCH] serial: 8250: fix compile error with hub6_match_port() when compiled as a module

Andy Shevchenko <[email protected]> Mon, 20 Jul 2026 21:09:03 +0200
Newsgroups org.kernel.vger.linux-serial,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo
Message-ID <[email protected]>
On Wed, Jul 15, 2026 at 11:37:05AM -0400, Hugo Villeneuve wrote:

> With CONFIG_SERIAL_8250_HUB6=m, we have the following compile error:
> 
>   ../drivers/tty/serial/8250/8250_hub6.c:46:6: error: redefinition of
>        'hub6_match_port'
> 
> Fix hub6_match_port() prototype definition by using IS_REACHABLE() to
> support both built-in and module values, and substitute empty prototype
> otherwise.

...

> +#include <linux/kconfig.h>

It's special header. It is always-included one, and hence here is a dup, please
drop this line.

-- 
With Best Regards,
Andy Shevchenko