On Thu, Jul 14, 2022 at 8:16 AM kernel test robot <lkp@xxxxxxxxx> wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 4662b7adea50bb62e993a67f611f3be625d3df0d > commit: 4658f2fe8fbcb12c1db0577ad9c46b67f10d09f1 [4365/10347] net: dsa: microchip: common ksz_spi_probe for ksz switches > config: hexagon-randconfig-r023-20220714 (https://download.01.org/0day-ci/archive/20220714/202207141406.IF2aPRxC-lkp@xxxxxxxxx/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4658f2fe8fbcb12c1db0577ad9c46b67f10d09f1 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 4658f2fe8fbcb12c1db0577ad9c46b67f10d09f1 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/net/dsa/microchip/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot <lkp@xxxxxxxxx> > > All warnings (new ones prefixed by >>): > > >> drivers/net/dsa/microchip/ksz_spi.c:132:34: warning: unused variable 'ksz_dt_ids' [-Wunused-const-variable] > static const struct of_device_id ksz_dt_ids[] = { > ^ The problem is the extraneous of_match_ptr() when referencing the ID table, just remove that. Arnd