linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arm:cex7 171/187] 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...
@ 2022-01-08  2:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-08  2:53 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: kbuild-all, linux-arm-kernel

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head:   c0fd07781c7d7d3a273892450c656e1eede8d221
commit: 708ac1dafaf0600cc8361fb9e3f03a8d331dbb2b [171/187] net: phylink: pass mode into pcs_validate()
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220108/202201081004.KlKoEQZg-lkp@intel.com/config)
compiler: arceb-elf-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 cex7
        git checkout 708ac1dafaf0600cc8361fb9e3f03a8d331dbb2b
        # 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=arc SHELL=/bin/bash

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

c288575f7810a51 Landen Chao           2020-09-11  3003  
53b8fb9411f0063 Russell King (Oracle  2021-11-21  3004) static const struct phylink_pcs_ops mt7530_pcs_ops = {
53b8fb9411f0063 Russell King (Oracle  2021-11-21 @3005) 	.pcs_validate = mt753x_pcs_validate,
53b8fb9411f0063 Russell King (Oracle  2021-11-21  3006) 	.pcs_get_state = mt7530_pcs_get_state,
53b8fb9411f0063 Russell King (Oracle  2021-11-21  3007) 	.pcs_config = mt753x_pcs_config,
53b8fb9411f0063 Russell King (Oracle  2021-11-21  3008) 	.pcs_an_restart = mt7530_pcs_an_restart,
53b8fb9411f0063 Russell King (Oracle  2021-11-21  3009) };
88bdef8be9f649c Landen Chao           2020-09-11  3010  

:::::: The code at line 3005 was first introduced by commit
:::::: 53b8fb9411f006389a222c44fc1c08295ddfae2b net: dsa: mt7530: partially convert to phylink_pcs  *EXPERIMENTAL*

:::::: TO: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
:::::: CC: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

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

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

only message in thread, other threads:[~2022-01-08  2:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-08  2:53 [arm:cex7 171/187] 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 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).