Messages in this thread | | | Date | Fri, 8 Oct 2021 04:37:05 +0800 | From | kernel test robot <> | Subject | [axboe-block:nvme-passthru-wip 16/19] drivers/nvme/host/ioctl.c:82:25: warning: variable 'ucd' set but not used |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git nvme-passthru-wip head: 9c18980ac90053bcdb21594eae48935d89bf389c commit: 40669a7355a5518181c2f7c4113d9f8fb808c658 [16/19] nvme: don't store intermediate result/status in command config: hexagon-randconfig-r045-20211007 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 58b68e70ebf6308f982426a2618782f473218eed) 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/axboe/linux-block.git/commit/?id=40669a7355a5518181c2f7c4113d9f8fb808c658 git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git git fetch --no-tags axboe-block nvme-passthru-wip git checkout 40669a7355a5518181c2f7c4113d9f8fb808c658 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/nvme/host/ioctl.c:82:25: warning: variable 'ucd' set but not used [-Wunused-but-set-variable] struct uring_cmd_data *ucd; ^ drivers/nvme/host/ioctl.c:155:5: warning: no previous prototype for function 'nvme_rq_map_user_fixedb' [-Wmissing-prototypes] int nvme_rq_map_user_fixedb(struct request_queue *q, struct request *rq, ^ drivers/nvme/host/ioctl.c:155:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int nvme_rq_map_user_fixedb(struct request_queue *q, struct request *rq, ^ static drivers/nvme/host/ioctl.c:244:3: error: implicit declaration of function '__blk_execute_rq_nowait' [-Werror,-Wimplicit-function-declaration] __blk_execute_rq_nowait(ns ? ns->disk : NULL, req, false, false, ^ drivers/nvme/host/ioctl.c:244:3: note: did you mean 'blk_execute_rq_nowait'? include/linux/blkdev.h:894:13: note: 'blk_execute_rq_nowait' declared here extern void blk_execute_rq_nowait(struct gendisk *, ^ 2 warnings and 1 error generated.
vim +/ucd +82 drivers/nvme/host/ioctl.c
5cc445dd8df6e06f Kanchan Joshi 2021-08-05 78 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 79 static void nvme_end_async_pt(struct request *req, blk_status_t err) 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 80 { 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 81 struct io_uring_cmd *ioucmd; 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 @82 struct uring_cmd_data *ucd; 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 83 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 84 ioucmd = req->end_io_data; 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 85 ucd = (struct uring_cmd_data *) nvme_ioucmd_data_addr(ioucmd); 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 86 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 87 /* this takes care of setting up task-work */ 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 88 io_uring_cmd_complete_in_task(ioucmd, nvme_pt_task_cb); 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 89 } 5cc445dd8df6e06f Kanchan Joshi 2021-08-05 90
:::::: The code at line 82 was first introduced by commit :::::: 5cc445dd8df6e06f3482711aa590170450364393 nvme: wire-up support for async-passthru on char-device.
:::::: TO: Kanchan Joshi <joshi.k@samsung.com> :::::: CC: Jens Axboe <axboe@kernel.dk>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |