Re: [PATCH 1/2] libnvdimm: add missing macros

From: Dan Williams
Date: Fri Jul 08 2016 - 15:32:44 EST


On Fri, Jul 8, 2016 at 9:29 AM, Eric Engestrom
<eric.engestrom@xxxxxxxxxx> wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom@xxxxxxxxxx>
> ---
>
> This can't compile without these macrosâ Is this header really used by anyone?
> Should it be removed, to avoid bit-rot?

It's used by ndctl [1]. You can't use it directly in userspace, you
need the kernel's "make headers_install" to strip out the
kernel-specific macros.

[1]: https://github.com/pmem/ndctl