History

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).

David Howells committed 8 years ago

Commit f366d321 parent 96078712 files · +22 −4Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ndctl.h+0−4
@@ -202,10 +202,6 @@ enum nd_driver_flags { · 201 unmodified lines
202 ND_DRIVER_DAX_PMEM = 1 << ND_DEVICE_DAX_PMEM,202 ND_DRIVER_DAX_PMEM = 1 << ND_DEVICE_DAX_PMEM,
203};203};
204 204
205enum {
206 ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
207};
208
209enum ars_masks {205enum ars_masks {
210 ARS_STATUS_MASK = 0x0000FFFF,206 ARS_STATUS_MASK = 0x0000FFFF,
211 ARS_EXT_STATUS_SHIFT = 16,207 ARS_EXT_STATUS_SHIFT = 16,