hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/x86/include/asm/fixmap.h
....@@ -31,7 +31,7 @@
3131 #include <asm/pgtable_types.h>
3232 #ifdef CONFIG_X86_32
3333 #include <linux/threads.h>
34
-#include <asm/kmap_size.h>
34
+#include <asm/kmap_types.h>
3535 #else
3636 #include <uapi/asm/vsyscall.h>
3737 #endif
....@@ -94,7 +94,7 @@
9494 #endif
9595 #ifdef CONFIG_X86_32
9696 FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */
97
- FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1,
97
+ FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1,
9898 #ifdef CONFIG_PCI_MMCONFIG
9999 FIX_PCIE_MCFG,
100100 #endif
....@@ -151,6 +151,7 @@
151151
152152 extern int fixmaps_set;
153153
154
+extern pte_t *kmap_pte;
154155 extern pte_t *pkmap_page_table;
155156
156157 void __native_set_fixmap(enum fixed_addresses idx, pte_t pte);