aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-07-14 05:25:57 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-14 22:24:53 -0400
commitb3fcaaa8a6359e9ed623ed4c1d2d48c79eed4648 (patch)
treed19456b1c7a928e643db783547459e53839a96d9
parent5b0504c0d795d6b0a904ff861c043d7a231f67a4 (diff)
powerpc: mman.h export fixups
Commit ef3d3246a0d06be622867d21af25f997aeeb105f ("powerpc/mm: Add Strong Access Ordering support") in the powerpc/{next,master} tree caused the following in a powerpc allmodconfig build: usr/include/asm/mman.h requires linux/mm.h, which does not exist in exported headers We should not use CONFIG_PPC64 in an unprotected (by __KERNEL__) section of an exported include file and linux/mm.h is not exported. So protect the whole section that is CONFIG_PPC64 with __KERNEL__ and put the two introduced includes in there as well. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--include/asm-powerpc/Kbuild1
-rw-r--r--include/asm-powerpc/mman.h8
2 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-powerpc/Kbuild b/include/asm-powerpc/Kbuild
index 34a0a8db0104..04ce8f8a2ee7 100644
--- a/include/asm-powerpc/Kbuild
+++ b/include/asm-powerpc/Kbuild
@@ -2,7 +2,6 @@ include include/asm-generic/Kbuild.asm
2 2
3header-y += auxvec.h 3header-y += auxvec.h
4header-y += ioctls.h 4header-y += ioctls.h
5header-y += mman.h
6header-y += sembuf.h 5header-y += sembuf.h
7header-y += siginfo.h 6header-y += siginfo.h
8header-y += stat.h 7header-y += stat.h
diff --git a/include/asm-powerpc/mman.h b/include/asm-powerpc/mman.h
index f8a32e20ba04..9209f755763e 100644
--- a/include/asm-powerpc/mman.h
+++ b/include/asm-powerpc/mman.h
@@ -1,9 +1,7 @@
1#ifndef _ASM_POWERPC_MMAN_H 1#ifndef _ASM_POWERPC_MMAN_H
2#define _ASM_POWERPC_MMAN_H 2#define _ASM_POWERPC_MMAN_H
3 3
4#include <asm/cputable.h>
5#include <asm-generic/mman.h> 4#include <asm-generic/mman.h>
6#include <linux/mm.h>
7 5
8/* 6/*
9 * This program is free software; you can redistribute it and/or 7 * This program is free software; you can redistribute it and/or
@@ -28,7 +26,12 @@
28#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ 26#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */
29#define MAP_NONBLOCK 0x10000 /* do not block on IO */ 27#define MAP_NONBLOCK 0x10000 /* do not block on IO */
30 28
29#ifdef __KERNEL__
31#ifdef CONFIG_PPC64 30#ifdef CONFIG_PPC64
31
32#include <asm/cputable.h>
33#include <linux/mm.h>
34
32/* 35/*
33 * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits() 36 * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits()
34 * here. How important is the optimization? 37 * here. How important is the optimization?
@@ -56,4 +59,5 @@ static inline int arch_validate_prot(unsigned long prot)
56#define arch_validate_prot(prot) arch_validate_prot(prot) 59#define arch_validate_prot(prot) arch_validate_prot(prot)
57 60
58#endif /* CONFIG_PPC64 */ 61#endif /* CONFIG_PPC64 */
62#endif /* __KERNEL__ */
59#endif /* _ASM_POWERPC_MMAN_H */ 63#endif /* _ASM_POWERPC_MMAN_H */