Subject: Re: [PATCH net-next 1/2] net: dsa: mv88e6xxx: Add LED infrastructure

From: kernel test robot <[email-masked]>
Date: Thu, 4 Jan 2024 08:15:25 +0800

Hi Tobias,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Tobias-Waldekranz/net-dsa-mv88e6xxx-Add-LED-infrastructure/20240103-183726
base:   net-next/main
patch link:    https://lore.kernel.org/r/20240103103351.1188835-2-tobias%40waldekranz.com
patch subject: [PATCH net-next 1/2] net: dsa: mv88e6xxx: Add LED infrastructure
config: arm-orion5x_defconfig (https://download.01.org/0day-ci/archive/20240104/[email-masked]/config)
compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 7e186d366d6c7def0543acc255931f617e76dff0)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240104/[email-masked]/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-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All warnings (new ones prefixed by >>):

>> drivers/net/dsa/mv88e6xxx/leds.c:171:5: warning: no previous prototype for function 'mv88e6xxx_port_setup_leds' [-Wmissing-prototypes]
     171 | int mv88e6xxx_port_setup_leds(struct dsa_switch *ds, int port)
         |     ^
   drivers/net/dsa/mv88e6xxx/leds.c:171:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     171 | int mv88e6xxx_port_setup_leds(struct dsa_switch *ds, int port)
         | ^
         | static 
   1 warning generated.

vim +/mv88e6xxx_port_setup_leds +171 drivers/net/dsa/mv88e6xxx/leds.c

   170	
 > 171	int mv88e6xxx_port_setup_leds(struct dsa_switch *ds, int port)

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