[arm:zii 83/128] drivers/net/dsa/bcm_sf2.c:681:32: error: no member named 'phylink_config' in 'struct dsa_port'
kernel test robot
lkp at intel.com
Fri Nov 19 14:52:43 PST 2021
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: c1eecec81dcb1692f5a8da96f10248611bd5dfa4 [83/128] net: dsa: bcm_sf2: 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 c1eecec81dcb1692f5a8da96f10248611bd5dfa4
# 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/bcm_sf2.c:681:32: error: no member named 'phylink_config' in 'struct dsa_port'
caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
~~~~~~~~~~~~~~~~~~~~~ ^
1 error generated.
vim +681 drivers/net/dsa/bcm_sf2.c
672
673 static void bcm_sf2_sw_validate(struct dsa_switch *ds, int port,
674 unsigned long *supported,
675 struct phylink_link_state *state)
676 {
677 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
678 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
679 u32 caps;
680
> 681 caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
682
683 if (state->interface == PHY_INTERFACE_MODE_RGMII ||
684 state->interface == PHY_INTERFACE_MODE_RGMII_TXID ||
685 state->interface == PHY_INTERFACE_MODE_MII ||
686 state->interface == PHY_INTERFACE_MODE_REVMII)
687 caps |= MAC_ASYM_PAUSE | MAC_SYM_PAUSE;
688
689 /* Allow all the expected bits */
690 phylink_set(mask, Autoneg);
691 phylink_set_port_modes(mask);
692 phylink_get_linkmodes(mask, state->interface, caps);
693
694 linkmode_and(supported, supported, mask);
695 linkmode_and(state->advertising, state->advertising, mask);
696 }
697
---
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/3533b270/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list