All of lore.kernel.org
 help / color / mirror / Atom feed
* [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 *)'
@ 2021-06-03 18:22 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-03 18:22 UTC (permalink / raw)
  To: Russell King; +Cc: kbuild-all, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 3744 bytes --]

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@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@kernel.org>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 67524 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
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] 2+ messages in thread

* [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 *)'
@ 2021-06-03 18:22 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-03 18:22 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3817 bytes --]

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@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@kernel.org>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 67524 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-03 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 18:22 [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
2021-06-03 18:22 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.