GithubHelp home page GithubHelp logo

Comments (5)

woutershep avatar woutershep commented on June 7, 2024

I don't think that error is related to the listed commit but merely that you seem to be missing the linux headers. Atleast my linux headers of 4.4 seems to include a linux/nvme.h when doing make headers_install

However that linux/nvme.h that i have doesn't define all the needed things anymore since that mentioned commit. I think the error that you meant to paste was:

linux.c: In function 'eb_nvme_ns_id':
linux.c:48:27: error: 'NVME_IOCTL_ID' undeclared (first use in this function)
  uint64_t ret = ioctl(fd, NVME_IOCTL_ID, NULL);
                           ^
linux.c:48:27: note: each undeclared identifier is reported only once for each function it appears in

Instead that one is in the new uapi/linux/nvme_ioctl.h which is not installed through make headers_install.

from efivar.

floppym avatar floppym commented on June 7, 2024

Gentoo's linux-headers-4.4 packaging includes several patches. One of them changes headers_install to include nvme_ioctl.h instead of nvme.h. This patch is pending review on LKML.

https://lkml.org/lkml/2016/1/10/332

I guess we will have to see how this turns out in linux-4.5.

from efivar.

floppym avatar floppym commented on June 7, 2024

The patch got merged on the kernel master branch.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a9cf8284b45110a4d98aea180a89c857e53bf850

from efivar.

floppym avatar floppym commented on June 7, 2024

I'm applying this patch downstream; if you find the solution acceptable, feel free to merge it.

https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/efivar/files/0.21-nvme_ioctl.h.patch

from efivar.

vathpela avatar vathpela commented on June 7, 2024

Thanks, I've pulled this in to master.

from efivar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.