[arm:zii 119/186] drivers/net/dsa/mt7530.c:2707:40: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'

kernel test robot lkp at intel.com
Tue Dec 14 16:51:38 PST 2021


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   d3ebd79d7fb6476e2409c147e4dcc304733f7ae6
commit: 76c8c505247c567d0883b44bab8b678bc9238bfb [119/186] net: dsa: mt7530: partially convert to phylink_pcs  *EXPERIMENTAL*
config: arm-randconfig-r011-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150852.mYNBmqPU-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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 76c8c505247c567d0883b44bab8b678bc9238bfb
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/

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 'mt753x_phylink_mac_select_pcs':
>> drivers/net/dsa/mt7530.c:2707:40: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'
    2707 |                 return &priv->pcs[port].phylink_pcs;
         |                                        ^
   drivers/net/dsa/mt7530.c: In function 'mt7531_cpu_port_config':
   drivers/net/dsa/mt7530.c:2882:52: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'
    2882 |         mt753x_phylink_pcs_link_up(&priv->pcs[port].phylink_pcs, MLO_AN_FIXED,
         |                                                    ^
   drivers/net/dsa/mt7530.c: At top level:
   drivers/net/dsa/mt7530.c:3026:25: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
    3026 |         .pcs_validate = mt753x_pcs_validate,
         |                         ^~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mt7530.c:3026:25: note: (near initialization for 'mt7530_pcs_ops.pcs_validate')
   drivers/net/dsa/mt7530.c:3033:25: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
    3033 |         .pcs_validate = mt753x_pcs_validate,
         |                         ^~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mt7530.c:3033:25: note: (near initialization for 'mt7531_pcs_ops.pcs_validate')
   drivers/net/dsa/mt7530.c: In function 'mt753x_setup':
>> drivers/net/dsa/mt7530.c:3060:33: error: 'priv->pcs[i].pcs' is a pointer; did you mean to use '->'?
    3060 |                 priv->pcs[i].pcs.ops = priv->pcs_ops;
         |                                 ^
         |                                 ->
>> drivers/net/dsa/mt7530.c:3060:44: error: 'struct mt7530_priv' has no member named 'pcs_ops'
    3060 |                 priv->pcs[i].pcs.ops = priv->pcs_ops;
         |                                            ^~
   cc1: some warnings being treated as errors


vim +2707 drivers/net/dsa/mt7530.c

  2695	
  2696	static struct phylink_pcs *
  2697	mt753x_phylink_mac_select_pcs(struct dsa_switch *ds, int port,
  2698				      phy_interface_t interface)
  2699	{
  2700		struct mt7530_priv *priv = ds->priv;
  2701	
  2702		switch (interface) {
  2703		case PHY_INTERFACE_MODE_TRGMII:
  2704		case PHY_INTERFACE_MODE_SGMII:
  2705		case PHY_INTERFACE_MODE_1000BASEX:
  2706		case PHY_INTERFACE_MODE_2500BASEX:
> 2707			return &priv->pcs[port].phylink_pcs;
  2708	
  2709		default:
  2710			return NULL;
  2711		}
  2712	}
  2713	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list