[arm:zii 69/128] drivers/net/dsa/mt7530.c:2885:32: error: no member named 'phylink_config' in 'struct dsa_port'

kernel test robot lkp at intel.com
Fri Nov 19 13:43:10 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: arm-randconfig-r032-20211119 (attached as .config)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/dsa/

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:2420:28: error: use of undeclared identifier 'priv'
                   if (mt7531_is_rgmii_port(priv, port)) {
                                            ^
>> drivers/net/dsa/mt7530.c:2885:32: error: no member named 'phylink_config' in 'struct dsa_port'
           caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
                  ~~~~~~~~~~~~~~~~~~~~~  ^
   2 errors generated.


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: 42271 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211120/ff19c67b/attachment-0001.gz>


More information about the linux-arm-kernel mailing list