From: kernel test robot <lkp@intel.com>
To: Anuj Gupta <anuj20.g@samsung.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Jens Axboe <axboe@kernel.dk>, Kanchan Joshi <joshi.k@samsung.com>
Subject: [axboe:nvme-raw-queues 5/16] drivers/nvme/host/core.c:3900:30: error: no member named 'register_queue' in 'struct blk_mq_ops'
Date: Thu, 07 May 2026 00:57:37 +0800 [thread overview]
Message-ID: <202605070059.sqyr11Zd-lkp@intel.com> (raw)
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
reply other threads:[~2026-05-06 16:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202605070059.sqyr11Zd-lkp@intel.com \
--to=lkp@intel.com \
--cc=anuj20.g@samsung.com \
--cc=axboe@kernel.dk \
--cc=joshi.k@samsung.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox