|
@@ -1457,7 +1457,7 @@ int __weak alloc_bootmem_huge_page(struct hstate *h)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
found:
|
|
found:
|
|
- BUG_ON((unsigned long)virt_to_phys(m) & (huge_page_size(h) - 1));
|
|
|
|
|
|
+ BUG_ON(!IS_ALIGNED(virt_to_phys(m), huge_page_size(h)));
|
|
/* Put them into a private list first because mem_map is not up yet */
|
|
/* Put them into a private list first because mem_map is not up yet */
|
|
list_add(&m->list, &huge_boot_pages);
|
|
list_add(&m->list, &huge_boot_pages);
|
|
m->hstate = h;
|
|
m->hstate = h;
|