Skip to content

Commit 1b8d2af

Browse files
committed
libnvdimm, pfn: fix ARCH=alpha allmodconfig build failure
I had relied on the kbuild robot for cross build coverage, however it only builds alpha_defconfig. Switch from HPAGE_SIZE to PMD_SIZE, which is more widely defined. Fixes: 658922e ("libnvdimm, pfn: fix memmap reservation sizing") Cc: <stable@vger.kernel.org> Reported-by: Guenter Roeck <guenter@roeck-us.net> Tested-by: Guenter Roeck <guenter@roeck-us.net> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 2eea658 commit 1b8d2af

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)