[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212192053.c0HSKfhc-lkp@intel.com>
Date: Mon, 19 Dec 2022 20:42:30 +0800
From: kernel test robot <lkp@...el.com>
To: Cindy Lu <lulu@...hat.com>
Cc: oe-kbuild-all@...ts.linux.dev, kvm@...r.kernel.org,
virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
"Michael S. Tsirkin" <mst@...hat.com>
Subject: [mst-vhost:vhost 43/52] drivers/vhost/vdpa.c:68:13: warning:
'vhost_vdpa_iotlb_unmap' used but never defined
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head: ebf31b1807d09448f902d02a0267dd344a194368
commit: 881ac7d2314fc9d236f0ca0a7edaab582b7f6f13 [43/52] vhost_vdpa: fix the crash in unmap a large memory
config: m68k-allyesconfig
compiler: m68k-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://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=881ac7d2314fc9d236f0ca0a7edaab582b7f6f13
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 881ac7d2314fc9d236f0ca0a7edaab582b7f6f13
# 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=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/vdpa/ drivers/vhost/
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/vhost/vdpa.c:740:13: error: conflicting types for 'vhost_vdpa_iotlb_unmap'; have 'void(struct vhost_vdpa *, struct vhost_iotlb *, u64, u64, u32)' {aka 'void(struct vhost_vdpa *, struct vhost_iotlb *, long long unsigned int, long long unsigned int, unsigned int)'}
740 | static void vhost_vdpa_iotlb_unmap(struct vhost_vdpa *v,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/vhost/vdpa.c:68:13: note: previous declaration of 'vhost_vdpa_iotlb_unmap' with type 'void(struct vhost_vdpa *, struct vhost_iotlb *, u64, u64)' {aka 'void(struct vhost_vdpa *, struct vhost_iotlb *, long long unsigned int, long long unsigned int)'}
68 | static void vhost_vdpa_iotlb_unmap(struct vhost_vdpa *v,
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/vhost/vdpa.c:68:13: warning: 'vhost_vdpa_iotlb_unmap' used but never defined
vim +/vhost_vdpa_iotlb_unmap +68 drivers/vhost/vdpa.c
4c8cf31885f69e Tiwei Bie 2020-03-26 67
62101d7d9451c1 Stefano Garzarella 2022-11-09 @68 static void vhost_vdpa_iotlb_unmap(struct vhost_vdpa *v,
62101d7d9451c1 Stefano Garzarella 2022-11-09 69 struct vhost_iotlb *iotlb,
62101d7d9451c1 Stefano Garzarella 2022-11-09 70 u64 start, u64 last);
62101d7d9451c1 Stefano Garzarella 2022-11-09 71
:::::: The code at line 68 was first introduced by commit
:::::: 62101d7d9451c11cec455181421a8a689f007cc8 vhost-vdpa: fix an iotlb memory leak
:::::: TO: Stefano Garzarella <sgarzare@...hat.com>
:::::: CC: Michael S. Tsirkin <mst@...hat.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (282826 bytes)
Powered by blists - more mailing lists