tree:
git://git.infradead.org/users/hch/misc.git nvme-ioctl
head: 35c6dd73314831078d08613ffface7a97333169c
commit: 35c6dd73314831078d08613ffface7a97333169c [15/15] nvme: remove
nvme_{get,put}_ns_from_disk
config: x86_64-randconfig-a003-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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-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 35c6dd73314831078d08613ffface7a97333169c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
> drivers/nvme/host/core.c:1946:23: error: implicit declaration of
function 'nvme_find_path' [-Werror,-Wimplicit-function-declaration]
struct nvme_ns *ns = nvme_find_path(head);
^
> drivers/nvme/host/core.c:1946:18: warning: incompatible integer
to pointer conversion initializing 'struct nvme_ns *' with an expression of type
'int' [-Wint-conversion]
struct nvme_ns *ns =
nvme_find_path(head);
^ ~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/nvme_find_path +1946 drivers/nvme/host/core.c
1940
1941 static int nvme_send_ns_head_pr_command(struct block_device *bdev,
1942 struct nvme_command *c, u8 data[16])
1943 {
1944 struct nvme_ns_head *head = bdev->bd_disk->private_data;
1945 int srcu_idx = srcu_read_lock(&head->srcu);
1946 struct nvme_ns *ns = nvme_find_path(head);
1947 int
ret = -EWOULDBLOCK;
1948
1949 if (ns) {
1950 c->common.nsid = cpu_to_le32(ns->head->ns_id);
1951 ret = nvme_submit_sync_cmd(ns->queue, c, data, 16);
1952 }
1953 srcu_read_unlock(&head->srcu, srcu_idx);
1954 return ret;
1955 }
1956
1957 static int nvme_send_ns_pr_command(struct nvme_ns *ns, struct nvme_command *c,
1958 u8 data[16])
1959 {
1960 c->common.nsid = cpu_to_le32(ns->head->ns_id);
1961 return nvme_submit_sync_cmd(ns->queue, c, data, 16);
1962 }
1963
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org