All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/char/virtio_console.c:2213:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)'
@ 2021-07-05 19:43 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-05 19:43 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: kbuild-all, linux-kernel, 0day robot

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210706-022438/Xie-Yongji/virtio-blk-Add-validation-for-block-size-in-config-space/20210617-131203
head:   1dbb804890839a4c6208f695a9ae9234f31cc5ad
commit: 1dbb804890839a4c6208f695a9ae9234f31cc5ad virtio-blk: Add validation for block size in config space
date:   79 minutes ago
config: openrisc-randconfig-r031-20210705 (attached as .config)
compiler: or1k-linux-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
        # https://github.com/0day-ci/linux/commit/1dbb804890839a4c6208f695a9ae9234f31cc5ad
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210706-022438/Xie-Yongji/virtio-blk-Add-validation-for-block-size-in-config-space/20210617-131203
        git checkout 1dbb804890839a4c6208f695a9ae9234f31cc5ad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

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/char/virtio_console.c:2213:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
    2213 |  .probe = virtcons_probe,
         |           ^~~~~~~~~~~~~~
   drivers/char/virtio_console.c:2213:11: note: (near initialization for 'virtio_console.probe')
   drivers/char/virtio_console.c:2228:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
    2228 |  .probe = virtcons_probe,
         |           ^~~~~~~~~~~~~~
   drivers/char/virtio_console.c:2228:11: note: (near initialization for 'virtio_rproc_serial.probe')
   cc1: some warnings being treated as errors
--
>> drivers/scsi/virtio_scsi.c:985:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
     985 |  .probe = virtscsi_probe,
         |           ^~~~~~~~~~~~~~
   drivers/scsi/virtio_scsi.c:985:11: note: (near initialization for 'virtio_scsi_driver.probe')
   cc1: some warnings being treated as errors
--
>> drivers/crypto/virtio/virtio_crypto_core.c:516:25: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
     516 |  .probe               = virtcrypto_probe,
         |                         ^~~~~~~~~~~~~~~~
   drivers/crypto/virtio/virtio_crypto_core.c:516:25: note: (near initialization for 'virtio_crypto_driver.probe')
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +2213 drivers/char/virtio_console.c

2b8f41d846990c Amit Shah             2011-12-22  2206  
31610434bc3523 Rusty Russell         2007-10-22  2207  static struct virtio_driver virtio_console = {
c29834584ea4ea Christian Borntraeger 2008-11-25  2208  	.feature_table = features,
c29834584ea4ea Christian Borntraeger 2008-11-25  2209  	.feature_table_size = ARRAY_SIZE(features),
31610434bc3523 Rusty Russell         2007-10-22  2210  	.driver.name =	KBUILD_MODNAME,
31610434bc3523 Rusty Russell         2007-10-22  2211  	.driver.owner =	THIS_MODULE,
31610434bc3523 Rusty Russell         2007-10-22  2212  	.id_table =	id_table,
31610434bc3523 Rusty Russell         2007-10-22 @2213  	.probe =	virtcons_probe,
7177876fea8306 Amit Shah             2010-02-12  2214  	.remove =	virtcons_remove,
7f5d810dac7021 Amit Shah             2009-12-21  2215  	.config_changed = config_intr,
891070003999e7 Aaron Lu              2013-09-17  2216  #ifdef CONFIG_PM_SLEEP
2b8f41d846990c Amit Shah             2011-12-22  2217  	.freeze =	virtcons_freeze,
2b8f41d846990c Amit Shah             2011-12-22  2218  	.restore =	virtcons_restore,
2b8f41d846990c Amit Shah             2011-12-22  2219  #endif
31610434bc3523 Rusty Russell         2007-10-22  2220  };
31610434bc3523 Rusty Russell         2007-10-22  2221  

---
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: 30778 bytes --]

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

* drivers/char/virtio_console.c:2213:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)'
@ 2021-07-05 19:43 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-05 19:43 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210706-022438/Xie-Yongji/virtio-blk-Add-validation-for-block-size-in-config-space/20210617-131203
head:   1dbb804890839a4c6208f695a9ae9234f31cc5ad
commit: 1dbb804890839a4c6208f695a9ae9234f31cc5ad virtio-blk: Add validation for block size in config space
date:   79 minutes ago
config: openrisc-randconfig-r031-20210705 (attached as .config)
compiler: or1k-linux-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
        # https://github.com/0day-ci/linux/commit/1dbb804890839a4c6208f695a9ae9234f31cc5ad
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210706-022438/Xie-Yongji/virtio-blk-Add-validation-for-block-size-in-config-space/20210617-131203
        git checkout 1dbb804890839a4c6208f695a9ae9234f31cc5ad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

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/char/virtio_console.c:2213:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
    2213 |  .probe = virtcons_probe,
         |           ^~~~~~~~~~~~~~
   drivers/char/virtio_console.c:2213:11: note: (near initialization for 'virtio_console.probe')
   drivers/char/virtio_console.c:2228:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
    2228 |  .probe = virtcons_probe,
         |           ^~~~~~~~~~~~~~
   drivers/char/virtio_console.c:2228:11: note: (near initialization for 'virtio_rproc_serial.probe')
   cc1: some warnings being treated as errors
--
>> drivers/scsi/virtio_scsi.c:985:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
     985 |  .probe = virtscsi_probe,
         |           ^~~~~~~~~~~~~~
   drivers/scsi/virtio_scsi.c:985:11: note: (near initialization for 'virtio_scsi_driver.probe')
   cc1: some warnings being treated as errors
--
>> drivers/crypto/virtio/virtio_crypto_core.c:516:25: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
     516 |  .probe               = virtcrypto_probe,
         |                         ^~~~~~~~~~~~~~~~
   drivers/crypto/virtio/virtio_crypto_core.c:516:25: note: (near initialization for 'virtio_crypto_driver.probe')
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +2213 drivers/char/virtio_console.c

2b8f41d846990c Amit Shah             2011-12-22  2206  
31610434bc3523 Rusty Russell         2007-10-22  2207  static struct virtio_driver virtio_console = {
c29834584ea4ea Christian Borntraeger 2008-11-25  2208  	.feature_table = features,
c29834584ea4ea Christian Borntraeger 2008-11-25  2209  	.feature_table_size = ARRAY_SIZE(features),
31610434bc3523 Rusty Russell         2007-10-22  2210  	.driver.name =	KBUILD_MODNAME,
31610434bc3523 Rusty Russell         2007-10-22  2211  	.driver.owner =	THIS_MODULE,
31610434bc3523 Rusty Russell         2007-10-22  2212  	.id_table =	id_table,
31610434bc3523 Rusty Russell         2007-10-22 @2213  	.probe =	virtcons_probe,
7177876fea8306 Amit Shah             2010-02-12  2214  	.remove =	virtcons_remove,
7f5d810dac7021 Amit Shah             2009-12-21  2215  	.config_changed = config_intr,
891070003999e7 Aaron Lu              2013-09-17  2216  #ifdef CONFIG_PM_SLEEP
2b8f41d846990c Amit Shah             2011-12-22  2217  	.freeze =	virtcons_freeze,
2b8f41d846990c Amit Shah             2011-12-22  2218  	.restore =	virtcons_restore,
2b8f41d846990c Amit Shah             2011-12-22  2219  #endif
31610434bc3523 Rusty Russell         2007-10-22  2220  };
31610434bc3523 Rusty Russell         2007-10-22  2221  

---
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: 30778 bytes --]

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

end of thread, other threads:[~2021-07-05 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 19:43 drivers/char/virtio_console.c:2213:11: error: initialization of 'int (*)(struct virtio_device *, void *)' from incompatible pointer type 'int (*)(struct virtio_device *)' kernel test robot
2021-07-05 19:43 ` 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.