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)
commitf366d322aea782cf786aa821d5accdc1609f9e10
tree2d85bb857f08f51d8fb1c8c66e41f71f72eb567d
parent9607871f37dc3e717639694b8d0dc738f2a68efc
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: f2ba5a5baecf ("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