arm64: Do not export the compat-specific definitions to the user
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 10 Oct 2012 14:50:03 +0000 (15:50 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 11 Oct 2012 09:39:08 +0000 (10:39 +0100)
commit7606c37d4a447ea3b0efb2165d3ccf516b7d8696
tree91b61e142e160dc67342291f1863d2333059174e
parentf3d447a97f24f7c1e14767e1974b8e5bc219bc07
arm64: Do not export the compat-specific definitions to the user

This patch adds #ifdef __KERNEL__ guards around the COMPAT_* definitions
to avoid exporting them to user. AArch32 user requiring the kernel
headers must use those generated with ARCH=arm.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/hwcap.h
arch/arm64/include/asm/ptrace.h
arch/arm64/kernel/ptrace.c