Commit 3ff1559e authored by Russell King's avatar Russell King Committed by Russell King

[ARM] Fix nommu build

Fix warnings and errors in arch/arm/mm for nommu build.
Remove commented out function prototype in pgtable-nommu.h
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 5cd372e1
/* the upper-most page table pointer */ /* the upper-most page table pointer */
#ifdef CONFIG_MMU
extern pmd_t *top_pmd; extern pmd_t *top_pmd;
#define TOP_PTE(x) pte_offset_kernel(top_pmd, x) #define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
...@@ -13,6 +16,8 @@ static inline pmd_t *pmd_off_k(unsigned long virt) ...@@ -13,6 +16,8 @@ static inline pmd_t *pmd_off_k(unsigned long virt)
return pmd_off(pgd_offset_k(virt), virt); return pmd_off(pgd_offset_k(virt), virt);
} }
#endif
struct map_desc; struct map_desc;
struct meminfo; struct meminfo;
struct pglist_data; struct pglist_data;
......
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/bootmem.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/mach/arch.h>
#include "mm.h" #include "mm.h"
...@@ -76,7 +78,7 @@ void __iomem *__ioremap(unsigned long phys_addr, size_t size, ...@@ -76,7 +78,7 @@ void __iomem *__ioremap(unsigned long phys_addr, size_t size,
} }
EXPORT_SYMBOL(__ioremap); EXPORT_SYMBOL(__ioremap);
void __iounmap(void __iomem *addr) void __iounmap(volatile void __iomem *addr)
{ {
} }
EXPORT_SYMBOL(__iounmap); EXPORT_SYMBOL(__iounmap);
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#define PAGE_READONLY __pgprot(0) #define PAGE_READONLY __pgprot(0)
#define PAGE_KERNEL __pgprot(0) #define PAGE_KERNEL __pgprot(0)
//extern void paging_init(struct meminfo *, struct machine_desc *);
#define swapper_pg_dir ((pgd_t *) 0) #define swapper_pg_dir ((pgd_t *) 0)
#define __swp_type(x) (0) #define __swp_type(x) (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment