These are needed on powerpc since 64K is the default page size and 16MB is the PMD size when using the hash MMU.
Signed-off-by: Oliver O'Halloran <[email protected]> --- ndctl/builtin-xaction-namespace.c | 2 ++ util/size.h | 1 + 2 files changed, 3 insertions(+) diff --git a/ndctl/builtin-xaction-namespace.c b/ndctl/builtin-xaction-namespace.c index 46d651e86153..d6c38dc15984 100644 --- a/ndctl/builtin-xaction-namespace.c +++ b/ndctl/builtin-xaction-namespace.c @@ -494,7 +494,9 @@ static int validate_namespace_options(struct ndctl_region *region, switch (p->align) { case SZ_4K: + case SZ_64K: case SZ_2M: + case SZ_16M: case SZ_1G: break; default: diff --git a/util/size.h b/util/size.h index 4af14eb7d150..f1bfd1a30438 100644 --- a/util/size.h +++ b/util/size.h @@ -3,6 +3,7 @@ #define SZ_1K 0x00000400 #define SZ_4K 0x00001000 +#define SZ_64K 0x00010000 #define SZ_1M 0x00100000 #define SZ_2M 0x00200000 #define SZ_4M 0x00400000 -- 2.9.3 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
