mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
powerpc: handover page flags with a pgprot_t parameter
In order to avoid multiple conversions, handover directly a pgprot_t to map_kernel_page() as already done for radix. Do the same for __ioremap_caller() and __ioremap_at(). Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
56f3c1413f
commit
c766ee7223
20 changed files with 64 additions and 77 deletions
|
@ -98,8 +98,7 @@ static int map_patch_area(void *addr, unsigned long text_poke_addr)
|
|||
else
|
||||
pfn = __pa_symbol(addr) >> PAGE_SHIFT;
|
||||
|
||||
err = map_kernel_page(text_poke_addr, (pfn << PAGE_SHIFT),
|
||||
pgprot_val(PAGE_KERNEL));
|
||||
err = map_kernel_page(text_poke_addr, (pfn << PAGE_SHIFT), PAGE_KERNEL);
|
||||
|
||||
pr_devel("Mapped addr %lx with pfn %lx:%d\n", text_poke_addr, pfn, err);
|
||||
if (err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue