diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2009-06-23 13:09:27 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2009-06-23 13:09:27 +0000 |
commit | 467554e4a17062737fc49ffc9cd36d2a8b8d90ff (patch) | |
tree | 90ae1cb8d1ffc1e4ff372f0fc968170e10649590 /target/linux/coldfire | |
parent | 8cdd8276b117e1125265f4ddd5e20111bb21c2ef (diff) | |
download | upstream-467554e4a17062737fc49ffc9cd36d2a8b8d90ff.tar.gz upstream-467554e4a17062737fc49ffc9cd36d2a8b8d90ff.tar.bz2 upstream-467554e4a17062737fc49ffc9cd36d2a8b8d90ff.zip |
coldfire compile error fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16542 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/coldfire')
-rw-r--r-- | target/linux/coldfire/patches/100-compile_fixes.patch | 33 |
1 files changed, 33 insertions, 0 deletions
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 0000000000..7a579b3628 --- /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 <linux/blkdev.h> + #endif + #include <linux/bootmem.h> ++#include <linux/highmem.h> + + #include <asm/setup.h> + #include <asm/uaccess.h> |