]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - arch/sparc/include/asm/pgtable_64.h
arch, mm: convert all architectures to use 5level-fixup.h
[people/arne_f/kernel.git] / arch / sparc / include / asm / pgtable_64.h
index 7932a4a378176cfc697ba56758ad605f67bc16fb..8a598528ec1f0455508c1389982e832460c12b81 100644 (file)
@@ -12,6 +12,7 @@
  * the SpitFire page tables.
  */
 
+#include <asm-generic/5level-fixup.h>
 #include <linux/compiler.h>
 #include <linux/const.h>
 #include <asm/types.h>
@@ -878,6 +879,9 @@ static inline unsigned long pud_pfn(pud_t pud)
 #define pte_offset_map                 pte_index
 #define pte_unmap(pte)                 do { } while (0)
 
+/* We cannot include <linux/mm_types.h> at this point yet: */
+extern struct mm_struct init_mm;
+
 /* Actual page table PTE updates.  */
 void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr,
                   pte_t *ptep, pte_t orig, int fullmm,