* [axboe:nvme-raw-queues 5/16] drivers/nvme/host/core.c:3900:30: error: no member named 'register_queue' in 'struct blk_mq_ops'
@ 2026-05-06 16:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-06 16:57 UTC (permalink / raw)
To: Anuj Gupta; +Cc: llvm, oe-kbuild-all, Jens Axboe, Kanchan Joshi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git nvme-raw-queues
head: 38cfa7887dc8d403af2baa576d06c438408a192c
commit: e85c56d3378904ba7950d8880e93df4f219b058f [5/16] nvme: wire-up register/unregister queue f_op callback
config: hexagon-randconfig-001-20260506 (https://download.01.org/0day-ci/archive/20260507/202605070059.sqyr11Zd-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260507/202605070059.sqyr11Zd-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605070059.sqyr11Zd-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/nvme/host/core.c:3900:30: error: no member named 'register_queue' in 'struct blk_mq_ops'
3900 | if (q->mq_ops && q->mq_ops->register_queue)
| ~~~~~~~~~ ^
drivers/nvme/host/core.c:3901:21: error: no member named 'register_queue' in 'struct blk_mq_ops'
3901 | return q->mq_ops->register_queue(ns);
| ~~~~~~~~~ ^
drivers/nvme/host/core.c:3893:5: warning: no previous prototype for function 'nvme_register_queue' [-Wmissing-prototypes]
3893 | int nvme_register_queue(struct file *file)
| ^
drivers/nvme/host/core.c:3893:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3893 | int nvme_register_queue(struct file *file)
| ^
| static
>> drivers/nvme/host/core.c:3912:30: error: no member named 'unregister_queue' in 'struct blk_mq_ops'
3912 | if (q->mq_ops && q->mq_ops->unregister_queue)
| ~~~~~~~~~ ^
drivers/nvme/host/core.c:3913:21: error: no member named 'unregister_queue' in 'struct blk_mq_ops'
3913 | return q->mq_ops->unregister_queue(ns, qid);
| ~~~~~~~~~ ^
drivers/nvme/host/core.c:3905:5: warning: no previous prototype for function 'nvme_unregister_queue' [-Wmissing-prototypes]
3905 | int nvme_unregister_queue(struct file *file, int qid)
| ^
drivers/nvme/host/core.c:3905:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
3905 | int nvme_unregister_queue(struct file *file, int qid)
| ^
| static
2 warnings and 4 errors generated.
--
>> drivers/nvme/host/ioctl.c:785:30: error: no member named 'register_queue' in 'struct blk_mq_ops'
785 | if (q->mq_ops && q->mq_ops->register_queue)
| ~~~~~~~~~ ^
drivers/nvme/host/ioctl.c:786:20: error: no member named 'register_queue' in 'struct blk_mq_ops'
786 | ret = q->mq_ops->register_queue(ns);
| ~~~~~~~~~ ^
>> drivers/nvme/host/ioctl.c:809:30: error: no member named 'unregister_queue' in 'struct blk_mq_ops'
809 | if (q->mq_ops && q->mq_ops->unregister_queue)
| ~~~~~~~~~ ^
drivers/nvme/host/ioctl.c:810:20: error: no member named 'unregister_queue' in 'struct blk_mq_ops'
810 | ret = q->mq_ops->unregister_queue(ns, qid);
| ~~~~~~~~~ ^
4 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MFD_STMFX
Depends on [n]: HAS_IOMEM [=y] && I2C [=y] && OF [=n]
Selected by [y]:
- PINCTRL_STMFX [=y] && PINCTRL [=y] && I2C [=y] && HAS_IOMEM [=y]
vim +3900 drivers/nvme/host/core.c
3892
3893 int nvme_register_queue(struct file *file)
3894 {
3895 struct nvme_ns *ns = container_of(file_inode(file)->i_cdev,
3896 struct nvme_ns, cdev);
3897 struct nvme_ctrl *ctrl = ns->ctrl;
3898 struct request_queue *q = ns ? ns->queue : ctrl->admin_q;
3899
> 3900 if (q->mq_ops && q->mq_ops->register_queue)
3901 return q->mq_ops->register_queue(ns);
3902 return -EINVAL;
3903 }
3904
3905 int nvme_unregister_queue(struct file *file, int qid)
3906 {
3907 struct nvme_ns *ns = container_of(file_inode(file)->i_cdev,
3908 struct nvme_ns, cdev);
3909 struct nvme_ctrl *ctrl = ns->ctrl;
3910 struct request_queue *q = ns ? ns->queue : ctrl->admin_q;
3911
> 3912 if (q->mq_ops && q->mq_ops->unregister_queue)
3913 return q->mq_ops->unregister_queue(ns, qid);
3914 return -EINVAL;
3915 }
3916
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-06 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 16:57 [axboe:nvme-raw-queues 5/16] drivers/nvme/host/core.c:3900:30: error: no member named 'register_queue' in 'struct blk_mq_ops' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox