* [hch-misc:nvme-pr-fix 4/5] drivers/nvme/host/core.c:1647:8: error: implicit declaration of function 'nvme_find_path'
@ 2020-08-16 5:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-16 5:13 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3807 bytes --]
tree: git://git.infradead.org/users/hch/misc.git nvme-pr-fix
head: d5eadfcdbeb0e4f09c22b02955b587321c6300b1
commit: b0e4e1fe3d0665fdd93e9d1f84ab52f24bb8dae8 [4/5] nvme: factor out a is_multipath_disk helper
config: x86_64-randconfig-r033-20200816 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ab9fc8bae805c785066779e76e7846aabad5609e)
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 checkout b0e4e1fe3d0665fdd93e9d1f84ab52f24bb8dae8
# 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@intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/nvme/host/core.c:1647:8: error: implicit declaration of function 'nvme_find_path' [-Werror,-Wimplicit-function-declaration]
ns = nvme_find_path(*head);
^
>> drivers/nvme/host/core.c:1647:6: 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 +/nvme_find_path +1647 drivers/nvme/host/core.c
b0e4e1fe3d0665 Christoph Hellwig 2020-08-14 1634
32acab3181c705 Christoph Hellwig 2017-11-02 1635 /*
32acab3181c705 Christoph Hellwig 2017-11-02 1636 * Issue ioctl requests on the first available path. Note that unlike normal
32acab3181c705 Christoph Hellwig 2017-11-02 1637 * block layer requests we will not retry failed request on another controller.
32acab3181c705 Christoph Hellwig 2017-11-02 1638 */
240e6ee272c07a Keith Busch 2020-06-29 1639 struct nvme_ns *nvme_get_ns_from_disk(struct gendisk *disk,
32acab3181c705 Christoph Hellwig 2017-11-02 1640 struct nvme_ns_head **head, int *srcu_idx)
1673f1f08c8876 Christoph Hellwig 2015-11-26 1641 {
b0e4e1fe3d0665 Christoph Hellwig 2020-08-14 1642 if (is_multipath_disk(disk)) {
100c815cbd5648 Christoph Hellwig 2019-05-17 1643 struct nvme_ns *ns;
100c815cbd5648 Christoph Hellwig 2019-05-17 1644
32acab3181c705 Christoph Hellwig 2017-11-02 1645 *head = disk->private_data;
32acab3181c705 Christoph Hellwig 2017-11-02 1646 *srcu_idx = srcu_read_lock(&(*head)->srcu);
100c815cbd5648 Christoph Hellwig 2019-05-17 @1647 ns = nvme_find_path(*head);
100c815cbd5648 Christoph Hellwig 2019-05-17 1648 if (!ns)
100c815cbd5648 Christoph Hellwig 2019-05-17 1649 srcu_read_unlock(&(*head)->srcu, *srcu_idx);
100c815cbd5648 Christoph Hellwig 2019-05-17 1650 return ns;
32acab3181c705 Christoph Hellwig 2017-11-02 1651 }
b0e4e1fe3d0665 Christoph Hellwig 2020-08-14 1652
32acab3181c705 Christoph Hellwig 2017-11-02 1653 *head = NULL;
32acab3181c705 Christoph Hellwig 2017-11-02 1654 *srcu_idx = -1;
32acab3181c705 Christoph Hellwig 2017-11-02 1655 return disk->private_data;
32acab3181c705 Christoph Hellwig 2017-11-02 1656 }
1673f1f08c8876 Christoph Hellwig 2015-11-26 1657
:::::: The code at line 1647 was first introduced by commit
:::::: 100c815cbd56480b3e31518475b04719c363614a nvme: fix srcu locking on error return in nvme_get_ns_from_disk
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Keith Busch <keith.busch@intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34256 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-16 5:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 5:13 [hch-misc:nvme-pr-fix 4/5] drivers/nvme/host/core.c:1647:8: error: implicit declaration of function 'nvme_find_path' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.