linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arm:net-queue 171/174] drivers/net/dsa/mt7530.c:3005:18: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, unsigned long *, const struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, unsigned lo...
@ 2022-01-08  6:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-08  6:07 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: llvm, kbuild-all, linux-arm-kernel

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git net-queue
head:   9ceab2608ffe3f543e1118044bc86bc6ccb93255
commit: a5d401c6c8d1f84dcfa1a267166ad8ce85cda26f [171/174] net: phylink: pass mode into pcs_validate()
config: i386-randconfig-a005-20220106 (https://download.01.org/0day-ci/archive/20220108/202201081440.qAwUArEv-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 a5d401c6c8d1f84dcfa1a267166ad8ce85cda26f
        # 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@intel.com>

All errors (new ones prefixed by >>):

>> drivers/net/dsa/mt7530.c:3005:18: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, 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:3012:18: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, 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:3039:32: error: no member named 'pcs_ops' in 'struct mt7530_priv'
                   priv->pcs[i].pcs.ops = priv->pcs_ops;
                                          ~~~~  ^
   3 errors generated.


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

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

:::::: The code at line 3005 was first introduced by commit
:::::: 0ecdf3ab2ae1d35480614337758d8db5060885cf 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  6:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-08  6:07 [arm:net-queue 171/174] drivers/net/dsa/mt7530.c:3005:18: error: incompatible function pointer types initializing 'int (*)(struct phylink_pcs *, unsigned int, unsigned long *, const struct phylink_link_state *)' with an expression of type 'void (struct phylink_pcs *, unsigned lo 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).