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
202202 ND_DRIVER_DAX_PMEM = 1 << ND_DEVICE_DAX_PMEM,
203203 };
204204
205−enum {
206− ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
207−};
208−
209205 enum ars_masks {
210206 ARS_STATUS_MASK = 0x0000FFFF,
211207 ARS_EXT_STATUS_SHIFT = 16,