]> git.baikalelectronics.ru Git - kernel.git/commit
UAPI: ndctl: Remove use of PAGE_SIZE
authorDavid Howells <dhowells@redhat.com>
Thu, 6 Sep 2018 09:19:30 +0000 (10:19 +0100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 17 Oct 2018 20:56:58 +0000 (13:56 -0700)
commit5e11c2a0cb97cc9687c5ba3fbcadde0ba66954b2
tree2d85bb857f08f51d8fb1c8c66e41f71f72eb567d
parent210f5dbafdc8075b5ab9d6871832301c3ac30582
UAPI: ndctl: Remove use of PAGE_SIZE

The macro PAGE_SIZE isn't valid outside of the kernel, so it should not
appear in UAPI headers.

Furthermore, the actual machine page size could theoretically change from
an application's point of view if it's running in a container that gets
migrated to another machine (say 4K/ppc64 to 64K/ppc64).

Fixes: ab6f6d58c895 ("libnvdimm, namespace: make min namespace size 4K")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/linux/ndctl.h [new file with mode: 0644]
include/uapi/linux/ndctl.h