tree:
git://git.infradead.org/users/hch/misc.git nvme-ioctl
head: 35c6dd73314831078d08613ffface7a97333169c
commit: 24d2cd71eb775d0009fa934171170f86bbe1c56d [14/15] nvme: split nvme_report_zones
config: arm64-randconfig-r002-20210519 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
8e93d10633d751a3e9169bf9fa68326925ffa097)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc nvme-ioctl
git checkout 24d2cd71eb775d0009fa934171170f86bbe1c56d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/nvme/host/zns.c:247:7: error: implicit declaration of function
'nvme_find_path' [-Werror,-Wimplicit-function-declaration]
ns = nvme_find_path(head);
^
> drivers/nvme/host/zns.c:247:5: warning: incompatible integer to
pointer conversion assigning to 'struct nvme_ns *' from 'int'
[-Wint-conversion]
ns = nvme_find_path(head);
^ ~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +247 drivers/nvme/host/zns.c
238
239 int nvme_ns_head_report_zones(struct gendisk *disk, sector_t sector,
240 unsigned int nr_zones, report_zones_cb cb, void *data)
241 {
242 struct nvme_ns_head *head = disk->private_data;
243 struct nvme_ns *ns;
244 int srcu_idx, ret = -EWOULDBLOCK;
245
246 srcu_idx = srcu_read_lock(&head->srcu);
247 ns = nvme_find_path(head);
248 if (ns)
249 ret = nvme_ns_report_zones(ns, sector, nr_zones, cb, data);
250 srcu_read_unlock(&head->srcu, srcu_idx);
251 return ret;
252 }
253
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org