aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-05-09 21:24:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-09 21:24:04 -0400
commit2d0bd9534c8ddaebee64e1b4b7d621915f65e994 (patch)
tree4bf4f6953c03ddbe0b426b6069266ff1205e9b88
parent0161028b7c8aebef64194d3d73e43bc3b53b5c66 (diff)
parent1b8d2afde54fade94339f573c4e05644f9ae9866 (diff)
Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm build fix from Dan Williams: "A build fix for the usage of HPAGE_SIZE in the last libnvdimm pull request. I have taken note that the kbuild robot build success test does not include results for alpha_allmodconfig. Thanks to Guenter for the report. It's tagged for -stable since the original fix will land there and cause build problems" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: libnvdimm, pfn: fix ARCH=alpha allmodconfig build failure
-rw-r--r--drivers/nvdimm/pmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
index 5101f3ab4f29..92f536596b24 100644
--- a/drivers/nvdimm/pmem.c
+++ b/drivers/nvdimm/pmem.c
@@ -402,9 +402,9 @@ static int nd_pfn_init(struct nd_pfn *nd_pfn)
402 402
403 /* 403 /*
404 * vmemmap_populate_hugepages() allocates the memmap array in 404 * vmemmap_populate_hugepages() allocates the memmap array in
405 * HPAGE_SIZE chunks. 405 * PMD_SIZE chunks.
406 */ 406 */
407 memmap_size = ALIGN(64 * npfns, HPAGE_SIZE); 407 memmap_size = ALIGN(64 * npfns, PMD_SIZE);
408 offset = ALIGN(start + SZ_8K + memmap_size, nd_pfn->align) 408 offset = ALIGN(start + SZ_8K + memmap_size, nd_pfn->align)
409 - start; 409 - start;
410 } else if (nd_pfn->mode == PFN_MODE_RAM) 410 } else if (nd_pfn->mode == PFN_MODE_RAM)