aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgtable-3level.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/pgtable-3level.h')
-rw-r--r--include/asm-x86/pgtable-3level.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86/pgtable-3level.h b/include/asm-x86/pgtable-3level.h
index 61a7d0029f60..3da96f792dd0 100644
--- a/include/asm-x86/pgtable-3level.h
+++ b/include/asm-x86/pgtable-3level.h
@@ -163,7 +163,7 @@ static inline unsigned long pte_pfn(pte_t pte)
163 * put the 32 bits of offset into the high part. 163 * put the 32 bits of offset into the high part.
164 */ 164 */
165#define pte_to_pgoff(pte) ((pte).pte_high) 165#define pte_to_pgoff(pte) ((pte).pte_high)
166#define pgoff_to_pte(off) ((pte_t) { _PAGE_FILE, (off) }) 166#define pgoff_to_pte(off) ((pte_t) { { .pte_low = _PAGE_FILE, .pte_high = (off) } })
167#define PTE_FILE_MAX_BITS 32 167#define PTE_FILE_MAX_BITS 32
168 168
169/* Encode and de-code a swap entry */ 169/* Encode and de-code a swap entry */
@@ -171,7 +171,7 @@ static inline unsigned long pte_pfn(pte_t pte)
171#define __swp_offset(x) ((x).val >> 5) 171#define __swp_offset(x) ((x).val >> 5)
172#define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) << 5}) 172#define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) << 5})
173#define __pte_to_swp_entry(pte) ((swp_entry_t){ (pte).pte_high }) 173#define __pte_to_swp_entry(pte) ((swp_entry_t){ (pte).pte_high })
174#define __swp_entry_to_pte(x) ((pte_t){ 0, (x).val }) 174#define __swp_entry_to_pte(x) ((pte_t){ { .pte_high = (x).val } })
175 175
176#define __pmd_free_tlb(tlb, x) do { } while (0) 176#define __pmd_free_tlb(tlb, x) do { } while (0)
177 177