compile nvme not find bi_disk
Jens Axboe
axboe at kernel.dk
Mon Sep 18 07:00:39 PDT 2017
On 09/18/2017 07:47 AM, Tony Yang wrote:
> Dear All
>
> I'm compiling nvme, but encountered the following error, how can I
> solve it? Thanks
>
> CHK include/generated/compile.h
> CC [M] drivers/nvme/host/core.o
> drivers/nvme/host/core.c: In function ‘__nvme_submit_user_cmd’:
> drivers/nvme/host/core.c:631: error: ‘struct bio’ has no member named ‘bi_disk’
> 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
> [root at cescel03 nvme-nvme-4.13]# bi_disk
You're not running a mainline version of the kernel, looks like you're
trying to compile a newer version of the nvme driver on an older kernel
version. That's not going to work.
--
Jens Axboe
More information about the Linux-nvme
mailing list