[arm:zii 169/186] drivers/net/dsa/mt7530.c:3005:25: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const str...
From: kernel test robot <hidden>
Date: 2021-12-15 02:46:18
Also in:
oe-kbuild-all
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii head: d3ebd79d7fb6476e2409c147e4dcc304733f7ae6 commit: 1305d352ef9eeab497176235f3d1533e42ac25ec [169/186] net: phylink: pass mode into pcs_validate() config: arm-randconfig-r011-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151041.jln1Nvjj-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 1305d352ef9eeab497176235f3d1533e42ac25ec # 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/dsa/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> 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:
quoted
drivers/net/dsa/mt7530.c:3005:25: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, 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]
3005 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3005:25: note: (near initialization for 'mt7530_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c:3012:25: error: initialization of 'int (*)(struct phylink_pcs *, unsigned int, 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]
3012 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3012:25: note: (near initialization for 'mt7531_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c: In function 'mt753x_setup':
drivers/net/dsa/mt7530.c:3039:33: error: 'priv->pcs[i].pcs' is a pointer; did you mean to use '->'?
3039 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^
| ->
drivers/net/dsa/mt7530.c:3039:44: error: 'struct mt7530_priv' has no member named 'pcs_ops'
3039 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^~
cc1: some warnings being treated as errors
vim +3005 drivers/net/dsa/mt7530.c
c288575f7810a5 Landen Chao 2020-09-11 3003
76c8c505247c56 Russell King (Oracle 2021-11-21 3004) static const struct phylink_pcs_ops mt7530_pcs_ops = {
76c8c505247c56 Russell King (Oracle 2021-11-21 @3005) .pcs_validate = mt753x_pcs_validate,
76c8c505247c56 Russell King (Oracle 2021-11-21 3006) .pcs_get_state = mt7530_pcs_get_state,
76c8c505247c56 Russell King (Oracle 2021-11-21 3007) .pcs_config = mt753x_pcs_config,
76c8c505247c56 Russell King (Oracle 2021-11-21 3008) .pcs_an_restart = mt7530_pcs_an_restart,
76c8c505247c56 Russell King (Oracle 2021-11-21 3009) };
88bdef8be9f649 Landen Chao 2020-09-11 3010
:::::: The code at line 3005 was first introduced by commit
:::::: 76c8c505247c567d0883b44bab8b678bc9238bfb net: dsa: mt7530: partially convert to phylink_pcs *EXPERIMENTAL*
:::::: TO: Russell King (Oracle) [off-list ref]
:::::: CC: Russell King (Oracle) [off-list ref]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel