Skip to content

Commit 2d0bd95

Browse files
committed
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
2 parents 0161028 + 1b8d2af commit 2d0bd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvdimm/pmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ static int nd_pfn_init(struct nd_pfn *nd_pfn)
402402

403403
/*
404404
* vmemmap_populate_hugepages() allocates the memmap array in
405-
* HPAGE_SIZE chunks.
405+
* PMD_SIZE chunks.
406406
*/
407-
memmap_size = ALIGN(64 * npfns, HPAGE_SIZE);
407+
memmap_size = ALIGN(64 * npfns, PMD_SIZE);
408408
offset = ALIGN(start + SZ_8K + memmap_size, nd_pfn->align)
409409
- start;
410410
} else if (nd_pfn->mode == PFN_MODE_RAM)

0 commit comments

Comments
 (0)