linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: fix incorrect use of pgprot_t variable
@ 2015-06-30 16:04 Ard Biesheuvel
  2015-06-30 16:04 ` [PATCH 2/2] arm/arm64: KVM: fix two build failured under STRICT_MM_TYPECHECKS Ard Biesheuvel
  2015-06-30 17:04 ` [PATCH 1/2] arm64: fix incorrect use of pgprot_t variable Catalin Marinas
  0 siblings, 2 replies; 5+ messages in thread
From: Ard Biesheuvel @ 2015-06-30 16:04 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 arch/arm64/mm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 5b8b664422d3..79f29bab7259 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -116,7 +116,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);
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-01 10:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 16:04 [PATCH 1/2] arm64: fix incorrect use of pgprot_t variable Ard Biesheuvel
2015-06-30 16:04 ` [PATCH 2/2] arm/arm64: KVM: fix two build failured under STRICT_MM_TYPECHECKS Ard Biesheuvel
2015-06-30 17:03   ` Catalin Marinas
2015-07-01 10:56     ` Marc Zyngier
2015-06-30 17:04 ` [PATCH 1/2] arm64: fix incorrect use of pgprot_t variable Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).