CC arch/mips/kernel/asm-offsets.s In file included from arch/mips/kernel/asm-offsets.c:13: include/linux/sched.h:1147: error: `THREAD_SIZE_ORDER' undeclared here (not in a function) include/linux/sched.h: In function `arch_pick_mmap_layout': include/linux/sched.h:1517: error: `TASK_UNMAPPED_BASE' undeclared (first use in this function) include/linux/sched.h:1517: error: (Each undeclared identifier is reported only once include/linux/sched.h:1517: error: for each function it appears in.) In file included from include/asm/pgtable.h:18, from include/linux/mm.h:38, from arch/mips/kernel/asm-offsets.c:14: include/asm/io.h: In function `virt_to_phys': include/asm/io.h:118: error: `PAGE_OFFSET' undeclared (first use in this function) include/asm/io.h: In function `phys_to_virt': include/asm/io.h:135: error: `PAGE_OFFSET' undeclared (first use in this function) include/asm/io.h: In function `isa_virt_to_bus': include/asm/io.h:143: error: `PAGE_OFFSET' undeclared (first use in this function) include/asm/io.h: In function `isa_bus_to_virt': include/asm/io.h:148: error: `PAGE_OFFSET' undeclared (first use in this function) include/asm/io.h: In function `__ioremap_mode': include/asm/io.h:182: error: `cpu_has_64bit_addresses' undeclared (first use in this function) include/asm/io.h:183: error: `UNCAC_BASE' undeclared (first use in this function) include/asm/io.h:190: error: `IO_BASE' undeclared (first use in this function) include/asm/io.h: In function `iounmap': include/asm/io.h:286: error: `cpu_has_64bit_addresses' undeclared (first use in this function) include/asm/io.h: In function `__raw_writeb': include/asm/io.h:406: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_readb': include/asm/io.h:406: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `writeb': include/asm/io.h:406: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `readb': include/asm/io.h:406: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_writeb': include/asm/io.h:406: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_readb': include/asm/io.h:406: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_writew': include/asm/io.h:407: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_readw': include/asm/io.h:407: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `writew': include/asm/io.h:407: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `readw': include/asm/io.h:407: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_writew': include/asm/io.h:407: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_readw': include/asm/io.h:407: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_writel': include/asm/io.h:408: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_readl': include/asm/io.h:408: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `writel': include/asm/io.h:408: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `readl': include/asm/io.h:408: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_writel': include/asm/io.h:408: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_readl': include/asm/io.h:408: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_writeq': include/asm/io.h:409: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__raw_readq': include/asm/io.h:409: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `writeq': include/asm/io.h:409: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `readq': include/asm/io.h:409: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_writeq': include/asm/io.h:409: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `__mem_readq': include/asm/io.h:409: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `____raw_writeq': include/asm/io.h:430: error: `cpu_has_64bits' undeclared (first use in this function) include/asm/io.h: In function `____raw_readq': include/asm/io.h:430: error: `cpu_has_64bits' undeclared (first use in this function) In file included from include/linux/mm.h:38, from arch/mips/kernel/asm-offsets.c:14: include/asm/pgtable.h: At top level: include/asm/pgtable.h:185: error: `PTRS_PER_PGD' undeclared here (not in a function) In file included from include/asm/pgtable.h:404, from include/linux/mm.h:38, from arch/mips/kernel/asm-offsets.c:14: include/asm-generic/pgtable.h:198: error: syntax error before '*' token include/asm-generic/pgtable.h:198: warning: function declaration isn't a prototype include/asm-generic/pgtable.h:199: error: syntax error before '*' token include/asm-generic/pgtable.h:199: warning: function declaration isn't a prototype include/asm-generic/pgtable.h: In function `pgd_none_or_clear_bad': include/asm-generic/pgtable.h:203: warning: implicit declaration of function `pgd_none' include/asm-generic/pgtable.h:205: warning: implicit declaration of function `pgd_bad' include/asm-generic/pgtable.h: At top level: include/asm-generic/pgtable.h:212: error: syntax error before '*' token include/asm-generic/pgtable.h:213: warning: function declaration isn't a prototype include/asm-generic/pgtable.h: In function `pud_none_or_clear_bad': include/asm-generic/pgtable.h:214: warning: implicit declaration of function `pud_none' include/asm-generic/pgtable.h:214: error: `pud' undeclared (first use in this function) include/asm-generic/pgtable.h:216: warning: implicit declaration of function `pud_bad' include/asm-generic/pgtable.h: At top level: include/asm-generic/pgtable.h:223: error: syntax error before '*' token include/asm-generic/pgtable.h:224: warning: function declaration isn't a prototype include/asm-generic/pgtable.h: In function `pmd_none_or_clear_bad': include/asm-generic/pgtable.h:225: warning: implicit declaration of function `pmd_none' include/asm-generic/pgtable.h:225: error: `pmd' undeclared (first use in this function) include/asm-generic/pgtable.h:227: warning: implicit declaration of function `pmd_bad' In file included from arch/mips/kernel/asm-offsets.c:14: include/linux/mm.h: In function `lowmem_page_address': include/linux/mm.h:531: error: `PAGE_OFFSET' undeclared (first use in this function) include/linux/mm.h: At top level: include/linux/mm.h:808: error: syntax error before "pud_t" include/linux/mm.h:808: warning: function declaration isn't a prototype include/linux/mm.h:809: error: syntax error before "pmd_t" include/linux/mm.h:809: warning: function declaration isn't a prototype include/linux/mm.h:810: error: syntax error before '*' token include/linux/mm.h:810: warning: function declaration isn't a prototype include/linux/mm.h:817: error: syntax error before '*' token include/linux/mm.h:818: warning: return type defaults to `int' include/linux/mm.h: In function `pud_alloc': include/linux/mm.h:820: warning: implicit declaration of function `pud_offset' include/linux/mm.h:820: warning: pointer/integer type mismatch in conditional expression include/linux/mm.h: At top level: include/linux/mm.h:823: error: syntax error before '*' token include/linux/mm.h:823: error: syntax error before "pud_t" include/linux/mm.h:824: warning: return type defaults to `int' include/linux/mm.h:824: warning: function declaration isn't a prototype include/linux/mm.h: In function `pmd_alloc': include/linux/mm.h:825: error: `pud' undeclared (first use in this function) include/linux/mm.h:825: error: `mm' undeclared (first use in this function) include/linux/mm.h:825: error: `address' undeclared (first use in this function) include/linux/mm.h:826: warning: implicit declaration of function `pmd_offset' include/linux/mm.h:826: warning: pointer/integer type mismatch in conditional expression arch/mips/kernel/asm-offsets.c: In function `output_mm_defines': arch/mips/kernel/asm-offsets.c:226: error: `pmd_t' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:233: error: `PMD_SHIFT' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:234: error: `PGDIR_SHIFT' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:236: error: `PGD_ORDER' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:237: error: `PMD_ORDER' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:238: error: `PTE_ORDER' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:241: error: `PTRS_PER_PMD' undeclared (first use in this function) arch/mips/kernel/asm-offsets.c:242: error: `PTRS_PER_PTE' undeclared (first use in this function) make[7]: *** [arch/mips/kernel/asm-offsets.s] Error 1 make[6]: *** [prepare0] Error 2 make[5]: *** [prepare] Error 2