]> 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)
commitbb957b520c54c0018adf42c2227ca04c55bd350c
tree2d85bb857f08f51d8fb1c8c66e41f71f72eb567d
parentf5ced9d71a8a61f07217d52b510fa29acf13dc2f
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: eb781b085e57 ("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