linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arm:zii 69/128] drivers/net/dsa/mt7530.c:2885:32: error: no member named 'phylink_config' in 'struct dsa_port'
@ 2021-11-19 21:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-19 21:43 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: llvm, kbuild-all, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 2459 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42271 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-19 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 21:43 [arm:zii 69/128] drivers/net/dsa/mt7530.c:2885:32: error: no member named 'phylink_config' in 'struct dsa_port' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).