Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'x86-mm-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 mm cleanup from Thomas Gleixner:
"Use PAGE_ALIGNED() instead of open coding it in the x86/mm code"

* tag 'x86-mm-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mm: Use PAGE_ALIGNED(x) instead of IS_ALIGNED(x, PAGE_SIZE)

+4 -4
+4 -4
arch/x86/mm/init_64.c
··· 1240 1240 void __ref vmemmap_free(unsigned long start, unsigned long end, 1241 1241 struct vmem_altmap *altmap) 1242 1242 { 1243 - VM_BUG_ON(!IS_ALIGNED(start, PAGE_SIZE)); 1244 - VM_BUG_ON(!IS_ALIGNED(end, PAGE_SIZE)); 1243 + VM_BUG_ON(!PAGE_ALIGNED(start)); 1244 + VM_BUG_ON(!PAGE_ALIGNED(end)); 1245 1245 1246 1246 remove_pagetable(start, end, false, altmap); 1247 1247 } ··· 1605 1605 { 1606 1606 int err; 1607 1607 1608 - VM_BUG_ON(!IS_ALIGNED(start, PAGE_SIZE)); 1609 - VM_BUG_ON(!IS_ALIGNED(end, PAGE_SIZE)); 1608 + VM_BUG_ON(!PAGE_ALIGNED(start)); 1609 + VM_BUG_ON(!PAGE_ALIGNED(end)); 1610 1610 1611 1611 if (end - start < PAGES_PER_SECTION * sizeof(struct page)) 1612 1612 err = vmemmap_populate_basepages(start, end, node, NULL);