[arm:zii 1/41] drivers/net/phy/sfp-bus.c:82:12: error: initialization of 'void (*)(const struct sfp_eeprom_id *, long unsigned int *, long unsigned int *)' from incompatible pointer type 'void (*)(const struct sfp_eeprom_id *, long unsigned int *)'

kernel test robot lkp at intel.com
Thu Jun 3 11:22:15 PDT 2021


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   4dab70653b3c0e0ab718890d6218a87479ee0a2b
commit: e029229660ea2d54c5b2221ec2410a7d8a64d455 [1/41] net: sfp: add interface modes bitmap
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.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 e029229660ea2d54c5b2221ec2410a7d8a64d455
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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/phy/sfp-bus.c:82:12: error: initialization of 'void (*)(const struct sfp_eeprom_id *, long unsigned int *, long unsigned int *)' from incompatible pointer type 'void (*)(const struct sfp_eeprom_id *, long unsigned int *)' [-Werror=incompatible-pointer-types]
      82 |   .modes = sfp_quirk_ubnt_uf_instant,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/phy/sfp-bus.c:82:12: note: (near initialization for 'sfp_quirks[3].modes')
   cc1: some warnings being treated as errors


vim +82 drivers/net/phy/sfp-bus.c

f0b4f8476732995 Pali Rohár   2021-01-25  59  
b34bb2cb5b62c73 Russell King 2019-11-20  60  static const struct sfp_quirk sfp_quirks[] = {
b0eae33b2583dce Russell King 2019-11-20  61  	{
b0eae33b2583dce Russell King 2019-11-20  62  		// Alcatel Lucent G-010S-P can operate at 2500base-X, but
b0eae33b2583dce Russell King 2019-11-20  63  		// incorrectly report 2500MBd NRZ in their EEPROM
b0eae33b2583dce Russell King 2019-11-20  64  		.vendor = "ALCATELLUCENT",
b0eae33b2583dce Russell King 2019-11-20  65  		.part = "G010SP",
b0eae33b2583dce Russell King 2019-11-20  66  		.modes = sfp_quirk_2500basex,
b0eae33b2583dce Russell King 2019-11-20  67  	}, {
b0eae33b2583dce Russell King 2019-11-20  68  		// Alcatel Lucent G-010S-A can operate at 2500base-X, but
b0eae33b2583dce Russell King 2019-11-20  69  		// report 3.2GBd NRZ in their EEPROM
b0eae33b2583dce Russell King 2019-11-20  70  		.vendor = "ALCATELLUCENT",
b0eae33b2583dce Russell King 2019-11-20  71  		.part = "3FE46541AA",
b0eae33b2583dce Russell King 2019-11-20  72  		.modes = sfp_quirk_2500basex,
b0eae33b2583dce Russell King 2019-11-20  73  	}, {
b0eae33b2583dce Russell King 2019-11-20  74  		// Huawei MA5671A can operate at 2500base-X, but report 1.2GBd
b0eae33b2583dce Russell King 2019-11-20  75  		// NRZ in their EEPROM
b0eae33b2583dce Russell King 2019-11-20  76  		.vendor = "HUAWEI",
b0eae33b2583dce Russell King 2019-11-20  77  		.part = "MA5671A",
b0eae33b2583dce Russell King 2019-11-20  78  		.modes = sfp_quirk_2500basex,
f0b4f8476732995 Pali Rohár   2021-01-25  79  	}, {
f0b4f8476732995 Pali Rohár   2021-01-25  80  		.vendor = "UBNT",
f0b4f8476732995 Pali Rohár   2021-01-25  81  		.part = "UF-INSTANT",
f0b4f8476732995 Pali Rohár   2021-01-25 @82  		.modes = sfp_quirk_ubnt_uf_instant,
b0eae33b2583dce Russell King 2019-11-20  83  	},
b34bb2cb5b62c73 Russell King 2019-11-20  84  };
b34bb2cb5b62c73 Russell King 2019-11-20  85  

:::::: The code at line 82 was first introduced by commit
:::::: f0b4f847673299577c29b71d3f3acd3c313d81b7 net: sfp: add mode quirk for GPON module Ubiquiti U-Fiber Instant

:::::: TO: Pali Rohár <pali at kernel.org>
:::::: CC: Jakub Kicinski <kuba at kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 67524 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210604/c544768f/attachment-0001.gz>


More information about the linux-arm-kernel mailing list