MIPS: Quit exposing Kconfig symbols in uapi headers.
authorDavid Daney <david.daney@cavium.com>
Wed, 22 May 2013 22:35:56 +0000 (22:35 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 May 2013 08:19:04 +0000 (10:19 +0200)
commit8f657933a3c2086d4731350c98f91a990783c0d3
tree298c60e432e33537cc0c7c4eef6aa545b1449612
parentbe8a6d452bda4b1b842e81a99bb86f77a1cb8279
MIPS: Quit exposing Kconfig symbols in uapi headers.

The kernel's struct pt_regs has many fields conditional on various
Kconfig variables, we cannot be exporting this garbage to user-space.

Move the kernel's definition to asm/ptrace.h, and put a uapi only
version in uapi/asm/ptrace.h gated by #ifndef __KERNEL__

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5305/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/ptrace.h
arch/mips/include/uapi/asm/ptrace.h