Subject: [mst-vhost:vhost 14/16] drivers/virtio/virtio.c:207:13: error: 'virtio_reset_device' defined but not used

From: kernel test robot <[email-masked]>
Date: Thu, 14 Oct 2021 09:14:10 +0800

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 <[email-masked]>

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/[email-masked]