Re: [linux-nvme:nvme-6.1 9/10] drivers/nvme/host/rdma.c:989:50: error: use of undeclared identifier 'nctrl'

Daniel Wagner
2022-09-06T06:39:15Z

On Tue, Sep 06, 2022 at 03:05:51AM +0800, kernel test robot wrote:
> tree: git://git.infradead.org/nvme.git nvme-6.1
> head: 9951e3d984c9bf324bb7d486f42ec82727e3d777
> commit: 1de8b481a31490d6b0217ac78b87f54bc9bfb65a [9/10] nvme-rdma: Handle number of queue changes
> config: i386-randconfig-a015-20220905
> compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
> 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
> git remote add linux-nvme git://git.infradead.org/nvme.git
> git fetch --no-tags linux-nvme nvme-6.1
> git checkout 1de8b481a31490d6b0217ac78b87f54bc9bfb65a
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/nvme/host/
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> >> drivers/nvme/host/rdma.c:989:50: error: use of undeclared identifier 'nctrl'
> nr_queues = min(ctrl->tag_set.nr_hw_queues + 1, nctrl->queue_count);

Argh, my devel setup(*) obviously didn't compile the rdma bits. Do you
want me to send an fix on top of this or do you want a new version of
the patch?

(*) my main devel machine was out and I had to re-setup it and forgot
to update the config file accordingly.