Skip to contentSkip to conversation

drivers/tty/serial/8250/8250_hub6.c:44:6: warning: no previous prototype for function 'hub6_match_port'

PATCH kernel test robot 1 participant 1 message Jul 11 TTY layer and serial drivers

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
head:   bef5e068b89b0f0cf974c987ebba9869a14b44c6
commit: 3d406299d8829747fe2e8692f4c29fe3dc1d101f [32/41] serial: 8250_hub6: add hub6_match_port()
config: i386-randconfig-053 (https://download.01.org/0day-ci/archive/20260711/[email protected]/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/8250/8250_hub6.c:44:6: warning: no previous prototype for function 'hub6_match_port' [-Wmissing-prototypes]
      44 | bool hub6_match_port(const struct uart_port *port1, const struct uart_port *port2)
         |      ^
   drivers/tty/serial/8250/8250_hub6.c:44:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      44 | bool hub6_match_port(const struct uart_port *port1, const struct uart_port *port2)
         | ^
         | static 

1 warning generated.

vim +/hub6_match_port +44 drivers/tty/serial/8250/8250_hub6.c

    43	
  > 44	bool hub6_match_port(const struct uart_port *port1, const struct uart_port *port2)
    45	{
    46		return port1->iobase == port2->iobase && port1->hub6 == port2->hub6;
    47	}
    48	EXPORT_SYMBOL_GPL(hub6_match_port);
    49	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki