From 9f95ea363c93630ca369c05ee3b909601560c679 Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Tue, 23 Jun 2009 13:09:27 +0000 Subject: coldfire compile error fix SVN-Revision: 16542 --- .../linux/coldfire/patches/100-compile_fixes.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 target/linux/coldfire/patches/100-compile_fixes.patch diff --git a/target/linux/coldfire/patches/100-compile_fixes.patch b/target/linux/coldfire/patches/100-compile_fixes.patch new file mode 100644 index 0000000..7a579b3 --- /dev/null +++ b/target/linux/coldfire/patches/100-compile_fixes.patch @@ -0,0 +1,33 @@ +--- 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/include/asm-m68k/irq.h ++++ b/include/asm-m68k/irq.h +@@ -61,7 +61,8 @@ + + #define IRQ_USER 8 + +-extern unsigned int irq_canonicalize(unsigned int irq); ++//extern unsigned int irq_canonicalize(unsigned int irq); ++#define irq_canonicalize(irq) (irq) + + struct pt_regs; + +--- a/arch/m68k/mm/cf-mmu.c ++++ b/arch/m68k/mm/cf-mmu.c +@@ -21,6 +21,7 @@ + #include + #endif + #include ++#include + + #include + #include -- cgit v1.1