[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208250108.KV0cgfXO-lkp@intel.com>
Date: Thu, 25 Aug 2022 01:16:40 +0800
From: kernel test robot <lkp@...el.com>
To: Jason Gunthorpe <jgg@...dia.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jgunthorpe:vfio_iommufd 28/29] drivers/vfio/vfio_main.c:618:6:
warning: no previous prototype for 'vfio_assert_device_open'
tree: https://github.com/jgunthorpe/linux vfio_iommufd
head: d2ab4343c9f524e9404059830828188b0f8a15b6
commit: 5016830b7f1d1bf8af24d4ee80fc07a68d835af4 [28/29] vfio: Make vfio_container optionally compiled
config: sparc64-randconfig-r014-20220824 (https://download.01.org/0day-ci/archive/20220825/202208250108.KV0cgfXO-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.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/jgunthorpe/linux/commit/5016830b7f1d1bf8af24d4ee80fc07a68d835af4
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe vfio_iommufd
git checkout 5016830b7f1d1bf8af24d4ee80fc07a68d835af4
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/vfio/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/vfio/vfio_main.c:618:6: warning: no previous prototype for 'vfio_assert_device_open' [-Wmissing-prototypes]
618 | bool vfio_assert_device_open(struct vfio_device *device)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/vfio_assert_device_open +618 drivers/vfio/vfio_main.c
cba3345cc494ad drivers/vfio/vfio.c Alex Williamson 2012-07-31 616
eadd86f835c637 drivers/vfio/vfio.c Jason Gunthorpe 2022-05-11 617 /* true if the vfio_device has open_device() called but not close_device() */
79d394f0b0cd09 drivers/vfio/vfio_main.c Jason Gunthorpe 2022-02-18 @618 bool vfio_assert_device_open(struct vfio_device *device)
eadd86f835c637 drivers/vfio/vfio.c Jason Gunthorpe 2022-05-11 619 {
eadd86f835c637 drivers/vfio/vfio.c Jason Gunthorpe 2022-05-11 620 return !WARN_ON_ONCE(!READ_ONCE(device->open_count));
eadd86f835c637 drivers/vfio/vfio.c Jason Gunthorpe 2022-05-11 621 }
eadd86f835c637 drivers/vfio/vfio.c Jason Gunthorpe 2022-05-11 622
:::::: The code at line 618 was first introduced by commit
:::::: 79d394f0b0cd096e2eadbcc0e84b9035efa529c8 vfio: Move container code into vfio_container.c
:::::: TO: Jason Gunthorpe <jgg@...dia.com>
:::::: CC: Jason Gunthorpe <jgg@...dia.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists