[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211280709.c7eFAwnN-lkp@intel.com>
Date: Mon, 28 Nov 2022 07:18:03 +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: b7b275e60bcd5f89771e865a8239325f86d9927d
commit: 0b56e9a7e8358e59b21d8a425e463072bfae523c phy: Group vendor specific phy drivers
date: 5 years ago
config: x86_64-buildonly-randconfig-r001-20221128
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=x86_64 SHELL=/bin/bash LDFLAGS=-z max-page-size=0x200000 drivers/i2c/muxes/ drivers/media/rc/ drivers/phy/st/
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" (108475 bytes)
Powered by blists - more mailing lists