compile nvme 4.13 appear error

Keith Busch keith.busch at intel.com
Tue Sep 19 10:33:35 PDT 2017


On Tue, Sep 19, 2017 at 11:27:39PM +0800, Tony Yang wrote:
> Hi,
> 
>  I Once again downloaded the nvme 4.13 in
> http://git.infradead.org/nvme.git, and then recompile the kernel, the
> error occurred, how can I solve it, I hope to get your help, thank you
> very much。
> 
>  CC [M]  drivers/nvme/host/core.o
> drivers/nvme/host/core.c: In function 'nvme_alloc_mpath_ns':
> drivers/nvme/host/core.c:3111:34: error: 'NVME_FAILOVER_RETRIES'
> undeclared (first use in this function)
>   if (nvme_set_ns_active(nsa, ns, NVME_FAILOVER_RETRIES)) {
>                                   ^
> drivers/nvme/host/core.c:3111:34: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/nvme/host/core.c: In function 'nvme_trigger_failover':
> drivers/nvme/host/core.c:3277:50: error: 'NVME_FAILOVER_RETRIES'
> undeclared (first use in this function)
>      if (nvme_set_ns_active(standby_ns, mpath_ns, NVME_FAILOVER_RETRIES)) {
>                                                   ^
> make[3]: *** [drivers/nvme/host/core.o] Error 1
> make[2]: *** [drivers/nvme/host] Error 2
> make[1]: *** [drivers/nvme] Error 2
> make: *** [drivers] Error 2

Like I said before, those errors do not exist in an unmodified version
of the git repo you're linking to. You've out-of-tree stuff in your
source, so you or whoever set it up broke it.



More information about the Linux-nvme mailing list