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.

riscv: Remove __GFP_HIGHMEM masking

Remove unnecessary __GFP_HIGHMEM masking, which was introduced with
commit 380f2c1ae9d4 ("riscv: convert alloc_{pmd, pte}_late() to use
ptdescs"). GFP_KERNEL doesn't contain __GFP_HIGHMEM.

Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Link: https://patch.msgid.link/20251107182620.95844-1-vishal.moola@gmail.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Vishal Moola (Oracle) and committed by
Paul Walmsley
c9a71610 231fb999

+2 -2
+2 -2
arch/riscv/mm/init.c
··· 441 441 442 442 static phys_addr_t __meminit alloc_pte_late(uintptr_t va) 443 443 { 444 - struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL & ~__GFP_HIGHMEM, 0); 444 + struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL, 0); 445 445 446 446 /* 447 447 * We do not know which mm the PTE page is associated to at this point. ··· 526 526 527 527 static phys_addr_t __meminit alloc_pmd_late(uintptr_t va) 528 528 { 529 - struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL & ~__GFP_HIGHMEM, 0); 529 + struct ptdesc *ptdesc = pagetable_alloc(GFP_KERNEL, 0); 530 530 531 531 /* See comment in alloc_pte_late() regarding NULL passed the ctor */ 532 532 BUG_ON(!ptdesc || !pagetable_pmd_ctor(NULL, ptdesc));