All of lore.kernel.org
 help / color / mirror / Atom feed
* [mst-vhost:vhost 14/16] drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used
@ 2021-10-14  1:14 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-14  1:14 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: kbuild-all, kvm, virtualization, netdev

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   825f5e35666901a3cf6963c8ea3aea0898846a8e
commit: e958cd4aadfac0d2968c71208d39069e7968164c [14/16] virtio: wrap config->reset calls
config: microblaze-buildonly-randconfig-r001-20211013 (attached as .config)
compiler: microblaze-linux-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=e958cd4aadfac0d2968c71208d39069e7968164c
        git remote add mst-vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
        git fetch --no-tags mst-vhost vhost
        git checkout e958cd4aadfac0d2968c71208d39069e7968164c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze 

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/virtio/virtio.c:207:13: error: static declaration of 'virtio_reset_device' follows non-static declaration
     207 | static void virtio_reset_device(struct virtio_device *dev)
         |             ^~~~~~~~~~~~~~~~~~~
   In file included from drivers/virtio/virtio.c:2:
   include/linux/virtio.h:141:6: note: previous declaration of 'virtio_reset_device' with type 'void(struct virtio_device *)'
     141 | void virtio_reset_device(struct virtio_device *dev);
         |      ^~~~~~~~~~~~~~~~~~~
>> drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used [-Werror=unused-function]
     207 | static void virtio_reset_device(struct virtio_device *dev)
         |             ^~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/virtio_reset_device +207 drivers/virtio/virtio.c

   206	
 > 207	static void virtio_reset_device(struct virtio_device *dev)
   208	{
   209		dev->config->reset(dev);
   210	}
   211	

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

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

* [mst-vhost:vhost 14/16] drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used
@ 2021-10-14  1:14 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-14  1:14 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: netdev, kbuild-all, kvm, virtualization

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   825f5e35666901a3cf6963c8ea3aea0898846a8e
commit: e958cd4aadfac0d2968c71208d39069e7968164c [14/16] virtio: wrap config->reset calls
config: microblaze-buildonly-randconfig-r001-20211013 (attached as .config)
compiler: microblaze-linux-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=e958cd4aadfac0d2968c71208d39069e7968164c
        git remote add mst-vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
        git fetch --no-tags mst-vhost vhost
        git checkout e958cd4aadfac0d2968c71208d39069e7968164c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze 

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/virtio/virtio.c:207:13: error: static declaration of 'virtio_reset_device' follows non-static declaration
     207 | static void virtio_reset_device(struct virtio_device *dev)
         |             ^~~~~~~~~~~~~~~~~~~
   In file included from drivers/virtio/virtio.c:2:
   include/linux/virtio.h:141:6: note: previous declaration of 'virtio_reset_device' with type 'void(struct virtio_device *)'
     141 | void virtio_reset_device(struct virtio_device *dev);
         |      ^~~~~~~~~~~~~~~~~~~
>> drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used [-Werror=unused-function]
     207 | static void virtio_reset_device(struct virtio_device *dev)
         |             ^~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/virtio_reset_device +207 drivers/virtio/virtio.c

   206	
 > 207	static void virtio_reset_device(struct virtio_device *dev)
   208	{
   209		dev->config->reset(dev);
   210	}
   211	

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

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

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

* [mst-vhost:vhost 14/16] drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used
@ 2021-10-14  1:14 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-10-14  1:14 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   825f5e35666901a3cf6963c8ea3aea0898846a8e
commit: e958cd4aadfac0d2968c71208d39069e7968164c [14/16] virtio: wrap config->reset calls
config: microblaze-buildonly-randconfig-r001-20211013 (attached as .config)
compiler: microblaze-linux-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=e958cd4aadfac0d2968c71208d39069e7968164c
        git remote add mst-vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
        git fetch --no-tags mst-vhost vhost
        git checkout e958cd4aadfac0d2968c71208d39069e7968164c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze 

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/virtio/virtio.c:207:13: error: static declaration of 'virtio_reset_device' follows non-static declaration
     207 | static void virtio_reset_device(struct virtio_device *dev)
         |             ^~~~~~~~~~~~~~~~~~~
   In file included from drivers/virtio/virtio.c:2:
   include/linux/virtio.h:141:6: note: previous declaration of 'virtio_reset_device' with type 'void(struct virtio_device *)'
     141 | void virtio_reset_device(struct virtio_device *dev);
         |      ^~~~~~~~~~~~~~~~~~~
>> drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used [-Werror=unused-function]
     207 | static void virtio_reset_device(struct virtio_device *dev)
         |             ^~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/virtio_reset_device +207 drivers/virtio/virtio.c

   206	
 > 207	static void virtio_reset_device(struct virtio_device *dev)
   208	{
   209		dev->config->reset(dev);
   210	}
   211	

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

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

end of thread, other threads:[~2021-10-14  1:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14  1:14 [mst-vhost:vhost 14/16] drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used kernel test robot
2021-10-14  1:14 ` kernel test robot
2021-10-14  1:14 ` 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.