[saeed:net-next 48/260] drivers/net/dsa/realtek/realtek-mdio.c:203:34: warning: unused variable 'realtek_mdio_of_match'

From: kernel test robot
Date: Sat Feb 05 2022 - 16:02:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git net-next
head: 69dd0fdc44211d799165e6959057b323accc5afe
commit: aac94001067da183455d6d37959892744fa01d9d [48/260] net: dsa: realtek: add new mdio interface for drivers
config: arm-randconfig-r001-20220206 (https://download.01.org/0day-ci/archive/20220206/202202060415.LYwQvNJX-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project dee058c670593b999fec19c458dbbd882ad9de56)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/commit/?id=aac94001067da183455d6d37959892744fa01d9d
git remote add saeed https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
git fetch --no-tags saeed net-next
git checkout aac94001067da183455d6d37959892744fa01d9d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/dsa/realtek/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/net/dsa/realtek/realtek-mdio.c:203:34: warning: unused variable 'realtek_mdio_of_match' [-Wunused-const-variable]
static const struct of_device_id realtek_mdio_of_match[] = {
^
1 warning generated.


vim +/realtek_mdio_of_match +203 drivers/net/dsa/realtek/realtek-mdio.c

202
> 203 static const struct of_device_id realtek_mdio_of_match[] = {
204 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8366RB)
205 { .compatible = "realtek,rtl8366rb", .data = &rtl8366rb_variant, },
206 #endif
207 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB)
208 { .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, },
209 #endif
210 { /* sentinel */ },
211 };
212 MODULE_DEVICE_TABLE(of, realtek_mdio_of_match);
213

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx