summaryrefslogtreecommitdiffstats
path: root/target/linux/coldfire/patches/100-compile_fixes.patch
blob: 0f0694e2f09eec291f330ae1847f07d34159dda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/include/asm-m68k/cf_pgtable.h
+++ b/include/asm-m68k/cf_pgtable.h
@@ -176,7 +176,7 @@ extern inline pte_t pte_modify(pte_t pte
 
 #define pmd_set(pmdp, ptep) do {} while (0)
 
-extern inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp)
+static inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp)
 {
 	pgd_val(*pgdp) = virt_to_phys(pmdp);
 }
--- a/arch/m68k/mm/cf-mmu.c
+++ b/arch/m68k/mm/cf-mmu.c
@@ -21,6 +21,7 @@
 #include <linux/blkdev.h>
 #endif
 #include <linux/bootmem.h>
+#include <linux/highmem.h>
 
 #include <asm/setup.h>
 #include <asm/uaccess.h>