]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: mman.h export fixups
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 14 Jul 2008 09:25:57 +0000 (19:25 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 Jul 2008 02:24:53 +0000 (12:24 +1000)
commitb3fcaaa8a6359e9ed623ed4c1d2d48c79eed4648
treed19456b1c7a928e643db783547459e53839a96d9
parent5b0504c0d795d6b0a904ff861c043d7a231f67a4
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>
include/asm-powerpc/Kbuild
include/asm-powerpc/mman.h