[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <158764479990.28353.14903341506618201022.tip-bot2@tip-bot2>
Date: Thu, 23 Apr 2020 12:26:39 -0000
From: "tip-bot2 for Christoph Hellwig" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Christoph Hellwig <hch@....de>, Borislav Petkov <bp@...e.de>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
x86 <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [tip: x86/mm] x86/mm: Use pgprotval_t in protval_4k_2_large() and
protval_large_2_4k()
The following commit has been merged into the x86/mm branch of tip:
Commit-ID: 325518e9b743686f471e7a4ef617b57c91386795
Gitweb: https://git.kernel.org/tip/325518e9b743686f471e7a4ef617b57c91386795
Author: Christoph Hellwig <hch@....de>
AuthorDate: Wed, 22 Apr 2020 18:53:08 +02:00
Committer: Borislav Petkov <bp@...e.de>
CommitterDate: Thu, 23 Apr 2020 11:38:42 +02:00
x86/mm: Use pgprotval_t in protval_4k_2_large() and protval_large_2_4k()
Use the proper type for "raw" page table values.
Signed-off-by: Christoph Hellwig <hch@....de>
Signed-off-by: Borislav Petkov <bp@...e.de>
Acked-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Link: https://lkml.kernel.org/r/20200422170116.GA28345@lst.de
---
arch/x86/include/asm/pgtable_types.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index 567abdb..7b6ddcf 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -478,7 +478,7 @@ static inline pteval_t pte_flags(pte_t pte)
unsigned long cachemode2protval(enum page_cache_mode pcm);
-static inline unsigned long protval_4k_2_large(unsigned long val)
+static inline pgprotval_t protval_4k_2_large(pgprotval_t val)
{
return (val & ~(_PAGE_PAT | _PAGE_PAT_LARGE)) |
((val & _PAGE_PAT) << (_PAGE_BIT_PAT_LARGE - _PAGE_BIT_PAT));
@@ -487,7 +487,7 @@ static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot)
{
return __pgprot(protval_4k_2_large(pgprot_val(pgprot)));
}
-static inline unsigned long protval_large_2_4k(unsigned long val)
+static inline pgprotval_t protval_large_2_4k(pgprotval_t val)
{
return (val & ~(_PAGE_PAT | _PAGE_PAT_LARGE)) |
((val & _PAGE_PAT_LARGE) >>
Powered by blists - more mailing lists