Skip to content

Commit

Permalink
sh: Fix CONFIG_PMB=n build.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Jan 14, 2010
1 parent 02bf6cc commit 46c4e5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sh/include/asm/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#define PMB_NO_ENTRY (-1)

#ifndef __ASSEMBLY__
#include <linux/errno.h>

/* Default "unsigned long" context */
typedef unsigned long mm_context_id_t[NR_CPUS];
Expand Down Expand Up @@ -75,7 +76,7 @@ int pmb_init(void);
static inline long pmb_remap(unsigned long virt, unsigned long phys,
unsigned long size, unsigned long flags)
{
return -EINVAL
return -EINVAL;
}

static inline void pmb_unmap(unsigned long addr)
Expand Down

0 comments on commit 46c4e5d

Please sign in to comment.