drivers/net/ethernet/marvell/mvmdio.c:426:36: warning: unused variable 'orion_mdio_acpi_match'
From: kernel test robot <hidden>
Date: 2021-11-05 16:49:09
Also in:
lkml, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe91c4725aeed35023ba4f7a1e1adfebb6878c23 commit: c54da4c1acb1d62b3aec36b18473c430675e26d4 net: mvmdio: add ACPI support date: 5 months ago config: riscv-randconfig-r042-20210927 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c54da4c1acb1d62b3aec36b18473c430675e26d4 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout c54da4c1acb1d62b3aec36b18473c430675e26d4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>):
quoted
drivers/net/ethernet/marvell/mvmdio.c:426:36: warning: unused variable 'orion_mdio_acpi_match' [-Wunused-const-variable]
static const struct acpi_device_id orion_mdio_acpi_match[] = {
^
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/orion_mdio_acpi_match +426 drivers/net/ethernet/marvell/mvmdio.c
425
> 426 static const struct acpi_device_id orion_mdio_acpi_match[] = {
427 { "MRVL0100", BUS_TYPE_SMI },
428 { "MRVL0101", BUS_TYPE_XSMI },
429 { },
430 };
431 MODULE_DEVICE_TABLE(acpi, orion_mdio_acpi_match);
432
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 32496 bytes