[arm:net-queue 128/174] drivers/net/dsa/mt7530.c:3060:32: error: no member named 'pcs_ops' in 'struct mt7530_priv'
kernel test robot
lkp at intel.com
Fri Jan 7 11:07:29 PST 2022
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git net-queue
head: 9ceab2608ffe3f543e1118044bc86bc6ccb93255
commit: 0ecdf3ab2ae1d35480614337758d8db5060885cf [128/174] net: dsa: mt7530: partially convert to phylink_pcs *EXPERIMENTAL*
config: i386-randconfig-a005-20220106 (https://download.01.org/0day-ci/archive/20220108/202201080355.pMKHutjh-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ca7ffe09dc6e525109e3cd570cc5182ce568be13)
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 net-queue
git checkout 0ecdf3ab2ae1d35480614337758d8db5060885cf
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 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:3026:18: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned long *, const struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, unsigned long *, const struct phylink_link_state *)' [-Werror,-Wincompatible-function-pointer-types]
.pcs_validate = mt753x_pcs_validate,
^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3033:18: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned long *, const struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, unsigned long *, const struct phylink_link_state *)' [-Werror,-Wincompatible-function-pointer-types]
.pcs_validate = mt753x_pcs_validate,
^~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/mt7530.c:3060:32: error: no member named 'pcs_ops' in 'struct mt7530_priv'
priv->pcs[i].pcs.ops = priv->pcs_ops;
~~~~ ^
3 errors generated.
vim +3060 drivers/net/dsa/mt7530.c
3039
3040 static int
3041 mt753x_setup(struct dsa_switch *ds)
3042 {
3043 struct mt7530_priv *priv = ds->priv;
3044 int ret = priv->info->sw_setup(ds);
3045 int i;
3046
3047 if (ret)
3048 return ret;
3049
3050 ret = mt7530_setup_irq(priv);
3051 if (ret)
3052 return ret;
3053
3054 ret = mt7530_setup_mdio(priv);
3055 if (ret && priv->irq)
3056 mt7530_free_irq_common(priv);
3057
3058 /* Initialise the PCS devices */
3059 for (i = 0; i < priv->ds->num_ports; i++) {
> 3060 priv->pcs[i].pcs.ops = priv->pcs_ops;
3061 priv->pcs[i].priv = priv;
3062 priv->pcs[i].port = i;
3063 }
3064
3065 return ret;
3066 }
3067
---
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