hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/nds32/include/asm/fixmap.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 // Copyright (C) 2005-2017 Andes Technology Corporation
33
44 #ifndef __ASM_NDS32_FIXMAP_H
....@@ -6,7 +6,7 @@
66
77 #ifdef CONFIG_HIGHMEM
88 #include <linux/threads.h>
9
-#include <asm/kmap_types.h>
9
+#include <asm/kmap_size.h>
1010 #endif
1111
1212 enum fixed_addresses {
....@@ -14,7 +14,7 @@
1414 FIX_KMAP_RESERVED,
1515 FIX_KMAP_BEGIN,
1616 #ifdef CONFIG_HIGHMEM
17
- FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS),
17
+ FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1,
1818 #endif
1919 FIX_EARLYCON_MEM_BASE,
2020 __end_of_fixed_addresses