[arm:zii 69/128] drivers/net/dsa/mt7530.c:2885:39: error: 'struct dsa_port' has no member named 'phylink_config'; did you mean 'pl_config'?
From: kernel test robot <hidden>
Date: 2021-11-20 03:38:51
Also in:
oe-kbuild-all
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: 9d04d7433d7a412ee8ad503394f9db78140caf89 [69/128] net: dsa: mt7530: switch to use phylink_get_linkmodes()
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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 arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 9d04d7433d7a412ee8ad503394f9db78140caf89
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <redacted>
All errors (new ones prefixed by >>):
drivers/net/dsa/mt7530.c: In function 'mt7531_mac_port_get_caps':
drivers/net/dsa/mt7530.c:2420:42: error: 'priv' undeclared (first use in this function)
2420 | if (mt7531_is_rgmii_port(priv, port)) {
| ^~~~
drivers/net/dsa/mt7530.c:2420:42: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/dsa/mt7530.c: In function 'mt753x_phylink_validate':quoted
drivers/net/dsa/mt7530.c:2885:39: error: 'struct dsa_port' has no member named 'phylink_config'; did you mean 'pl_config'?
2885 | caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
| ^~~~~~~~~~~~~~
| pl_config
drivers/net/dsa/mt7530.c:2882:29: warning: unused variable 'priv' [-Wunused-variable]
2882 | struct mt7530_priv *priv = ds->priv;
| ^~~~
vim +2885 drivers/net/dsa/mt7530.c
2875
2876 static void
2877 mt753x_phylink_validate(struct dsa_switch *ds, int port,
2878 unsigned long *supported,
2879 struct phylink_link_state *state)
2880 {
2881 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
2882 struct mt7530_priv *priv = ds->priv;
2883 u32 caps;
2884 2885 caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
2886 2887 phylink_set_port_modes(mask); 2888 phylink_get_linkmodes(mask, state->interface, caps); 2889 2890 if (state->interface != PHY_INTERFACE_MODE_TRGMII || 2891 !phy_interface_mode_is_8023z(state->interface)) 2892 phylink_set(mask, Autoneg); 2893 2894 linkmode_and(supported, supported, mask); 2895 linkmode_and(state->advertising, state->advertising, mask); 2896 } 2897 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Attachments
- .config.gz [application/gzip] 61872 bytes
- (unnamed) [text/plain] 176 bytes · preview