summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/pgtable_types.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-11-26 19:02:29 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2022-12-15 21:37:27 +0300
commitfbfdec9989e69e0b17aa3bf32fcb22d04cc33301 (patch)
treec4f9d34fff5fca3e6875c22b97932187f03a4844 /arch/x86/include/asm/pgtable_types.h
parent93b3037a1482758349f3b0431406bcc457ca1cbc (diff)
downloadlinux-fbfdec9989e69e0b17aa3bf32fcb22d04cc33301.tar.xz
x86/mm/pae: Make pmd_t similar to pte_t
Instead of mucking about with at least 2 different ways of fudging it, do the same thing we do for pte_t. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20221022114424.580310787%40infradead.org
Diffstat (limited to 'arch/x86/include/asm/pgtable_types.h')
-rw-r--r--arch/x86/include/asm/pgtable_types.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index aa174fed3a71..447d4bee25c4 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -361,11 +361,9 @@ static inline pudval_t native_pud_val(pud_t pud)
#endif
#if CONFIG_PGTABLE_LEVELS > 2
-typedef struct { pmdval_t pmd; } pmd_t;
-
static inline pmd_t native_make_pmd(pmdval_t val)
{
- return (pmd_t) { val };
+ return (pmd_t) { .pmd = val };
}
static inline pmdval_t native_pmd_val(pmd_t pmd)