diff options
author | Paul Mackerras <paulus@samba.org> | 2008-05-12 14:57:51 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-05-12 14:57:51 +0200 |
commit | 0d4b6b901c3d41beb0e1620316aee0aa234edf7f (patch) | |
tree | 6bf52878511c86cc33b2b95ffba53863fa9c01f0 /include/asm-ppc | |
parent | [POWERPC] ppc: Don't run prom_init_check for arch/ppc builds (diff) | |
download | linux-0d4b6b901c3d41beb0e1620316aee0aa234edf7f.tar.xz linux-0d4b6b901c3d41beb0e1620316aee0aa234edf7f.zip |
[POWERPC] ppc: More compile fixes
This fixes a few more miscellaneous compile problems with ARCH=ppc.
1. Don't compile devres.c on ARCH=ppc, it doesn't have ioremap_flags.
2. Include <asm/irq.h> in setup.c for the __DO_IRQ_CANON definition.
3. Include <linux/proc_fs.h> in residual.c for the
definition of create_proc_read_entry.
4. Fix xchg_ptr to be a static inline to eliminate a compiler warning.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r-- | include/asm-ppc/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc/system.h b/include/asm-ppc/system.h index 0593cb889d45..70ebd333c55b 100644 --- a/include/asm-ppc/system.h +++ b/include/asm-ppc/system.h @@ -178,7 +178,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size } -extern inline void * xchg_ptr(void * m, void * val) +static inline void * xchg_ptr(void * m, void * val) { return (void *) xchg_u32(m, (unsigned long) val); } |