[PATCH v6] nvme: Skip trace complete_rq on host path error
kernel test robot
lkp at intel.com
Wed Apr 29 21:37:18 PDT 2026
Hi 전민식,
kernel test robot noticed the following build warnings:
[auto build test WARNING on axboe/for-next]
[also build test WARNING on linux-nvme/for-next linus/master v7.1-rc1]
[cannot apply to next-20260429]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/nvme-Skip-trace-complete_rq-on-host-path-error/20260416-180151
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
patch link: https://lore.kernel.org/r/20260416010713epcms2p78575bd400f93f6edb7fe3f3ead5bf930%40epcms2p7
patch subject: [PATCH v6] nvme: Skip trace complete_rq on host path error
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260430/202604300644.6qVuhQQC-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300644.6qVuhQQC-lkp@intel.com/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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604300644.6qVuhQQC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/nvme/host/core.c:457:6: warning: no previous prototype for function '__nvme_complete_rq' [-Wmissing-prototypes]
457 | void __nvme_complete_rq(struct request *req)
| ^
drivers/nvme/host/core.c:457:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
457 | void __nvme_complete_rq(struct request *req)
| ^
| static
1 warning generated.
vim +/__nvme_complete_rq +457 drivers/nvme/host/core.c
456
> 457 void __nvme_complete_rq(struct request *req)
458 {
459 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl;
460
461 nvme_cleanup_cmd(req);
462
463 /*
464 * Completions of long-running commands should not be able to
465 * defer sending of periodic keep alives, since the controller
466 * may have completed processing such commands a long time ago
467 * (arbitrarily close to command submission time).
468 * req->deadline - req->timeout is the command submission time
469 * in jiffies.
470 */
471 if (ctrl->kas &&
472 req->deadline - req->timeout >= ctrl->ka_last_check_time)
473 ctrl->comp_seen = true;
474
475 switch (nvme_decide_disposition(req)) {
476 case COMPLETE:
477 nvme_end_req(req);
478 return;
479 case RETRY:
480 nvme_retry_req(req);
481 return;
482 case FAILOVER:
483 nvme_failover_req(req);
484 return;
485 case AUTHENTICATE:
486 #ifdef CONFIG_NVME_HOST_AUTH
487 queue_work(nvme_wq, &ctrl->dhchap_auth_work);
488 nvme_retry_req(req);
489 #else
490 nvme_end_req(req);
491 #endif
492 return;
493 }
494 }
495
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Linux-nvme
mailing list