--- zzzz-none-000/linux-3.10.107/arch/powerpc/mm/dma-noncoherent.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/mm/dma-noncoherent.c 2021-02-04 17:41:59.000000000 +0000 @@ -33,6 +33,7 @@ #include #include +#include #include "mmu_decl.h" @@ -227,7 +228,7 @@ do { SetPageReserved(page); map_page(vaddr, page_to_phys(page), - pgprot_noncached(PAGE_KERNEL)); + pgprot_val(pgprot_noncached(PAGE_KERNEL))); page++; vaddr += PAGE_SIZE; } while (size -= PAGE_SIZE); @@ -287,9 +288,7 @@ pte_clear(&init_mm, addr, ptep); if (pfn_valid(pfn)) { struct page *page = pfn_to_page(pfn); - - ClearPageReserved(page); - __free_page(page); + __free_reserved_page(page); } } addr += PAGE_SIZE;