[mcgrof:blk-iobuf-pool-v5-premap-iova 13/14] drivers/nvme/host/ioctl.c:136:14: error: call to undeclared function 'io_uring_cmd_kbuf_priv'; ISO C99 and later do not support implicit function declarations
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git blk-iobuf-pool-v5-premap-iova head: 912328a605c4767433d483436a2d592d06063095 commit: 77b944e2c92e23c377117a624ac22fa2d37fe877 [13/14] nvme: issue premapped commands past the dma_opt clamp config: hexagon-randconfig-r113-20260816 (https://download.01.org/0day-ci/archive/20260817/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 844a18e753e822736c9805ab779144b647a2c186) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260817/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/nvme/host/ioctl.c:136:14: error: call to undeclared function 'io_uring_cmd_kbuf_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | kbuf_priv = io_uring_cmd_kbuf_priv(ioucmd, issue_flags); | ^ >> drivers/nvme/host/ioctl.c:136:12: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] 136 | kbuf_priv = io_uring_cmd_kbuf_priv(ioucmd, issue_flags); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. vim +/io_uring_cmd_kbuf_priv +136 drivers/nvme/host/ioctl.c 125 126 static void nvme_setup_premapped(struct request *req, struct nvme_ns *ns, 127 struct io_uring_cmd *ioucmd, 128 unsigned int issue_flags) 129 { 130 #ifdef CONFIG_BLK_IOBUF_POOL 131 struct blk_dma_premap *premap; 132 void *kbuf_priv; 133 134 if (!ioucmd) 135 return; > 136 kbuf_priv = io_uring_cmd_kbuf_priv(ioucmd, issue_flags); 137 if (!kbuf_priv) 138 return; 139 premap = blk_iobuf_fixed_buf_premap(kbuf_priv, ns->ctrl->dev); 140 if (!premap) 141 return; 142 /* 143 * The buffer is persistently mapped to our DMA device. Record the 144 * retained mapping BEFORE the buffer is mapped into the request, so 145 * blk_rq_map_user_bvec sizes the gate on max_hw_premapped_sectors rather 146 * than the 128K dma_opt clamp; req->dma_premap on the request is the sole 147 * marker of a premapped request from here on. 148 */ 149 req->dma_premap = premap; 150 #endif 151 } 152 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki