diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-01-14 18:00:45 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-14 18:00:45 -0500 |
commit | 46c4e5daea3d5df06e27bf5a49a0c42274db6725 (patch) | |
tree | f59354111a7d268f47a4cf84a8a1e850f5b1e2f0 /arch/sh/include/asm | |
parent | 02bf6cc72cc2a6258411ddf1649f33a65fc9a06e (diff) |
sh: Fix CONFIG_PMB=n build.
The last commit introduced the following breakage
arch/sh/include/asm/mmu.h: In function 'pmb_remap':
arch/sh/include/asm/mmu.h:79: error: expected ';' before '}' token
and...
arch/sh/include/asm/mmu.h:78: error: 'EINVAL' undeclared (first use in this function)
arch/sh/include/asm/mmu.h:78: error: (Each undeclared identifier is reported only once
arch/sh/include/asm/mmu.h:78: error: for each function it appears in.)
arch/sh/include/asm/mmu.h: In function 'pmb_init':
arch/sh/include/asm/mmu.h:87: error: 'ENODEV' undeclared (first use in this function)
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/mmu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/include/asm/mmu.h b/arch/sh/include/asm/mmu.h index 4b0882bf5183..e5e8f48830ef 100644 --- a/arch/sh/include/asm/mmu.h +++ b/arch/sh/include/asm/mmu.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #define PMB_NO_ENTRY (-1) | 30 | #define PMB_NO_ENTRY (-1) |
31 | 31 | ||
32 | #ifndef __ASSEMBLY__ | 32 | #ifndef __ASSEMBLY__ |
33 | #include <linux/errno.h> | ||
33 | 34 | ||
34 | /* Default "unsigned long" context */ | 35 | /* Default "unsigned long" context */ |
35 | typedef unsigned long mm_context_id_t[NR_CPUS]; | 36 | typedef unsigned long mm_context_id_t[NR_CPUS]; |
@@ -75,7 +76,7 @@ int pmb_init(void); | |||
75 | static inline long pmb_remap(unsigned long virt, unsigned long phys, | 76 | static inline long pmb_remap(unsigned long virt, unsigned long phys, |
76 | unsigned long size, unsigned long flags) | 77 | unsigned long size, unsigned long flags) |
77 | { | 78 | { |
78 | return -EINVAL | 79 | return -EINVAL; |
79 | } | 80 | } |
80 | 81 | ||
81 | static inline void pmb_unmap(unsigned long addr) | 82 | static inline void pmb_unmap(unsigned long addr) |