From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [hare-scsi-devel:virtual_subsys 165/170] drivers/nvme/host/core.c:3759:44: error: too many arguments to function call, expected 2, have 3
Date: Fri, 25 Mar 2022 02:27:11 +0800 [thread overview]
Message-ID: <202203250248.dKqDBgJ5-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git virtual_subsys
head: 275f3eb0b76e4cbc9fddaf4187988481747bb456
commit: e55421ca442930c9cc7606d8aa695ca85d485039 [165/170] nvme: use subsystem as argument in nvme_alloc_ns_head()
config: riscv-randconfig-r042-20220324 (https://download.01.org/0day-ci/archive/20220325/202203250248.dKqDBgJ5-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=e55421ca442930c9cc7606d8aa695ca85d485039
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel virtual_subsys
git checkout e55421ca442930c9cc7606d8aa695ca85d485039
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/nvme/host/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/nvme/host/core.c:3759:44: error: too many arguments to function call, expected 2, have 3
ret = nvme_mpath_alloc_disk(subsys, ctrl, head);
~~~~~~~~~~~~~~~~~~~~~ ^~~~
drivers/nvme/host/nvme.h:819:19: note: 'nvme_mpath_alloc_disk' declared here
static inline int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl,
^
1 error generated.
vim +3759 drivers/nvme/host/core.c
3735
3736 head = kzalloc(size, GFP_KERNEL);
3737 if (!head)
3738 goto out;
3739 ret = ida_alloc_min(&subsys->ns_ida, 1, GFP_KERNEL);
3740 if (ret < 0)
3741 goto out_free_head;
3742 head->instance = ret;
3743 INIT_LIST_HEAD(&head->list);
3744 ret = init_srcu_struct(&head->srcu);
3745 if (ret)
3746 goto out_ida_remove;
3747 head->subsys = subsys;
3748 head->ns_id = nsid;
3749 head->ids = *ids;
3750 kref_init(&head->ref);
3751
3752 if (head->ids.csi) {
3753 ret = nvme_get_effects_log(ctrl, head->ids.csi, &head->effects);
3754 if (ret)
3755 goto out_cleanup_srcu;
3756 } else
3757 head->effects = ctrl->effects;
3758
> 3759 ret = nvme_mpath_alloc_disk(subsys, ctrl, head);
3760 if (ret)
3761 goto out_cleanup_srcu;
3762
3763 list_add_tail(&head->entry, &subsys->nsheads);
3764
3765 kref_get(&subsys->ref);
3766
3767 return head;
3768 out_cleanup_srcu:
3769 cleanup_srcu_struct(&head->srcu);
3770 out_ida_remove:
3771 ida_free(&subsys->ns_ida, head->instance);
3772 out_free_head:
3773 kfree(head);
3774 out:
3775 if (ret > 0)
3776 ret = blk_status_to_errno(nvme_error_status(ret));
3777 return ERR_PTR(ret);
3778 }
3779
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-03-24 18:27 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=202203250248.dKqDBgJ5-lkp@intel.com \
--to=lkp@intel.com \
--cc=hare@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@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