[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206221327.UPS1BcWt-lkp@intel.com>
Date: Wed, 22 Jun 2022 13:25:02 +0800
From: kernel test robot <lkp@...el.com>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [rmk-arm:zii 84/107] drivers/net/dsa/ocelot/felix_vsc9959.c:964:13:
error: 'state' undeclared; did you mean 'statx'?
tree: git://git.armlinux.org.uk/~rmk/linux-arm zii
head: aedc75cf78fca1c8b7052c5d59981354f47e2e48
commit: 7d384dc3e28afd432b6ce219a699c0f02003e899 [84/107] net: dsa: ocelot: use phylink_validate_mask_caps()
config: alpha-randconfig-r022-20220622 (https://download.01.org/0day-ci/archive/20220622/202206221327.UPS1BcWt-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.3.0
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
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm zii
git checkout 7d384dc3e28afd432b6ce219a699c0f02003e899
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/net/dsa/ocelot/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/net/dsa/ocelot/felix_vsc9959.c: In function 'vsc9959_phylink_caps':
>> drivers/net/dsa/ocelot/felix_vsc9959.c:964:13: error: 'state' undeclared (first use in this function); did you mean 'statx'?
964 | if (state->interface == PHY_INTERFACE_MODE_INTERNAL ||
| ^~~~~
| statx
drivers/net/dsa/ocelot/felix_vsc9959.c:964:13: note: each undeclared identifier is reported only once for each function it appears in
vim +964 drivers/net/dsa/ocelot/felix_vsc9959.c
56051948773eeb Vladimir Oltean 2019-11-14 958
7d384dc3e28afd Russell King (Oracle 2022-06-18 959) static unsigned long vsc9959_phylink_caps(phy_interface_t interface)
375e1314292194 Vladimir Oltean 2020-07-13 960 {
7d384dc3e28afd Russell King (Oracle 2022-06-18 961) unsigned long caps = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
7d384dc3e28afd Russell King (Oracle 2022-06-18 962) MAC_10 | MAC_100 | MAC_1000;
375e1314292194 Vladimir Oltean 2020-07-13 963
375e1314292194 Vladimir Oltean 2020-07-13 @964 if (state->interface == PHY_INTERFACE_MODE_INTERNAL ||
375e1314292194 Vladimir Oltean 2020-07-13 965 state->interface == PHY_INTERFACE_MODE_2500BASEX ||
7d384dc3e28afd Russell King (Oracle 2022-06-18 966) state->interface == PHY_INTERFACE_MODE_USXGMII)
7d384dc3e28afd Russell King (Oracle 2022-06-18 967) caps |= MAC_2500FD;
375e1314292194 Vladimir Oltean 2020-07-13 968
7d384dc3e28afd Russell King (Oracle 2022-06-18 969) return caps;
375e1314292194 Vladimir Oltean 2020-07-13 970 }
375e1314292194 Vladimir Oltean 2020-07-13 971
:::::: The code at line 964 was first introduced by commit
:::::: 375e131429219486e581df8bd11b0dff87f0895a net: dsa: felix: move probing to felix_vsc9959.c
:::::: TO: Vladimir Oltean <vladimir.oltean@....com>
:::::: CC: David S. Miller <davem@...emloft.net>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists