arm64: fix incorrect use of pgprot_t variable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 30 Jun 2015 16:04:49 +0000 (18:04 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 30 Jun 2015 17:03:37 +0000 (18:03 +0100)
This fixes a build failure under STRICT_MM_TYPECHECKS, by adding
a missing pgprot_val() around a pgport_t reference.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c

index 82d3435bf14ffdf91fccb2e4857a1028c22750b6..a4ede4e2ddd1e7dfdca20594741e9e3d5f7f68dd 100644 (file)
@@ -117,7 +117,7 @@ void split_pud(pud_t *old_pud, pmd_t *pmd)
        int i = 0;
 
        do {
-               set_pmd(pmd, __pmd(addr | prot));
+               set_pmd(pmd, __pmd(addr | pgprot_val(prot)));
                addr += PMD_SIZE;
        } while (pmd++, i++, i < PTRS_PER_PMD);
 }