rtc: stm32: fix misspelling and misalignment issues
[linux/fpc-iii.git] / include / asm-generic / 5level-fixup.h
blob9c2e0708eb82f4aeb8c009f51f78fc43ae511036
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _5LEVEL_FIXUP_H
3 #define _5LEVEL_FIXUP_H
5 #define __ARCH_HAS_5LEVEL_HACK
6 #define __PAGETABLE_P4D_FOLDED
8 #define P4D_SHIFT PGDIR_SHIFT
9 #define P4D_SIZE PGDIR_SIZE
10 #define P4D_MASK PGDIR_MASK
11 #define MAX_PTRS_PER_P4D 1
12 #define PTRS_PER_P4D 1
14 #define p4d_t pgd_t
16 #define pud_alloc(mm, p4d, address) \
17 ((unlikely(pgd_none(*(p4d))) && __pud_alloc(mm, p4d, address)) ? \
18 NULL : pud_offset(p4d, address))
20 #define p4d_alloc(mm, pgd, address) (pgd)
21 #define p4d_offset(pgd, start) (pgd)
22 #define p4d_none(p4d) 0
23 #define p4d_bad(p4d) 0
24 #define p4d_present(p4d) 1
25 #define p4d_ERROR(p4d) do { } while (0)
26 #define p4d_clear(p4d) pgd_clear(p4d)
27 #define p4d_val(p4d) pgd_val(p4d)
28 #define p4d_populate(mm, p4d, pud) pgd_populate(mm, p4d, pud)
29 #define p4d_page(p4d) pgd_page(p4d)
30 #define p4d_page_vaddr(p4d) pgd_page_vaddr(p4d)
32 #define __p4d(x) __pgd(x)
33 #define set_p4d(p4dp, p4d) set_pgd(p4dp, p4d)
35 #undef p4d_free_tlb
36 #define p4d_free_tlb(tlb, x, addr) do { } while (0)
37 #define p4d_free(mm, x) do { } while (0)
38 #define __p4d_free_tlb(tlb, x, addr) do { } while (0)
40 #undef p4d_addr_end
41 #define p4d_addr_end(addr, end) (end)
43 #endif