[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'?
kernel test robot
lkp at intel.com
Fri Nov 19 19:36:13 PST 2021
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 <lkp at intel.com>
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':
>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 61872 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211120/4f472a6e/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list