diff options
author | David Howells <dhowells@redhat.com> | 2018-09-06 10:19:30 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-10-17 13:56:58 -0700 |
commit | f366d322aea782cf786aa821d5accdc1609f9e10 (patch) | |
tree | 2d85bb857f08f51d8fb1c8c66e41f71f72eb567d /include/uapi/linux/ndctl.h | |
parent | 9607871f37dc3e717639694b8d0dc738f2a68efc (diff) | |
download | linux-f366d322aea782cf786aa821d5accdc1609f9e10.tar.gz linux-f366d322aea782cf786aa821d5accdc1609f9e10.tar.bz2 linux-f366d322aea782cf786aa821d5accdc1609f9e10.zip |
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>
Diffstat (limited to 'include/uapi/linux/ndctl.h')
-rw-r--r-- | include/uapi/linux/ndctl.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h index 2f2c43d633c5..f57c9e434d2d 100644 --- a/include/uapi/linux/ndctl.h +++ b/include/uapi/linux/ndctl.h @@ -202,10 +202,6 @@ enum nd_driver_flags { ND_DRIVER_DAX_PMEM = 1 << ND_DEVICE_DAX_PMEM, }; -enum { - ND_MIN_NAMESPACE_SIZE = PAGE_SIZE, -}; - enum ars_masks { ARS_STATUS_MASK = 0x0000FFFF, ARS_EXT_STATUS_SHIFT = 16, |