[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211040332.VqgRHCEY-lkp@intel.com>
Date: Fri, 4 Nov 2022 03:13:32 +0800
From: kernel test robot <lkp@...el.com>
To: Vivek Gautam <vivek.gautam@...eaurora.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Kishon Vijay Abraham I <kishon@...com>,
Jaehoon Chung <jh80.chung@...sung.com>
Subject: drivers/phy/st/phy-spear1310-miphy.c:176:34: warning:
'spear1310_miphy_of_match' defined but not used
Hi Vivek,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f2f32f8af2b0ca9d619e5183eae3eed431793baf
commit: 0b56e9a7e8358e59b21d8a425e463072bfae523c phy: Group vendor specific phy drivers
date: 5 years ago
config: i386-buildonly-randconfig-r005-20221031
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b56e9a7e8358e59b21d8a425e463072bfae523c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0b56e9a7e8358e59b21d8a425e463072bfae523c
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/phy/st/ drivers/rtc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/phy/st/phy-spear1310-miphy.c:176:34: warning: 'spear1310_miphy_of_match' defined but not used [-Wunused-const-variable=]
static const struct of_device_id spear1310_miphy_of_match[] = {
^~~~~~~~~~~~~~~~~~~~~~~~
vim +/spear1310_miphy_of_match +176 drivers/phy/st/phy-spear1310-miphy.c
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 175
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 @176 static const struct of_device_id spear1310_miphy_of_match[] = {
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 177 { .compatible = "st,spear1310-miphy" },
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 178 { },
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 179 };
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 180 MODULE_DEVICE_TABLE(of, spear1310_miphy_of_match);
64562e99477fc5 drivers/phy/phy-spear1310-miphy.c Pratyush Anand 2014-04-14 181
:::::: The code at line 176 was first introduced by commit
:::::: 64562e99477fc58a11e7f351f959c956586906e1 phy: Add drivers for PCIe and SATA phy on SPEAr13xx
:::::: TO: Pratyush Anand <pratyush.anand@...com>
:::::: CC: Viresh Kumar <viresh.kumar@...aro.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (96136 bytes)
Powered by blists - more mailing lists