From af170c5061dd78512c469e6e2d211980cdb2c193 Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 14 Dec 2012 22:37:13 +0000 Subject: UAPI: (Scripted) Disintegrate arch/x86/include/asm Signed-off-by: David Howells Acked-by: Arnd Bergmann Acked-by: Thomas Gleixner Acked-by: Michael Kerrisk Acked-by: Paul E. McKenney Acked-by: Dave Jones --- arch/x86/include/asm/Kbuild | 26 -- arch/x86/include/asm/a.out.h | 20 -- arch/x86/include/asm/auxvec.h | 19 -- arch/x86/include/asm/bitsperlong.h | 13 - arch/x86/include/asm/boot.h | 9 +- arch/x86/include/asm/bootparam.h | 139 -------- arch/x86/include/asm/byteorder.h | 6 - arch/x86/include/asm/debugreg.h | 79 +---- arch/x86/include/asm/e820.h | 74 +---- arch/x86/include/asm/errno.h | 1 - arch/x86/include/asm/fcntl.h | 1 - arch/x86/include/asm/hw_breakpoint.h | 5 +- arch/x86/include/asm/hyperv.h | 194 ----------- arch/x86/include/asm/ioctl.h | 1 - arch/x86/include/asm/ioctls.h | 1 - arch/x86/include/asm/ipcbuf.h | 1 - arch/x86/include/asm/ist.h | 17 +- arch/x86/include/asm/kvm.h | 346 -------------------- arch/x86/include/asm/kvm_para.h | 99 +----- arch/x86/include/asm/ldt.h | 40 --- arch/x86/include/asm/mce.h | 119 +------ arch/x86/include/asm/mman.h | 11 - arch/x86/include/asm/msgbuf.h | 1 - arch/x86/include/asm/msr-index.h | 488 ---------------------------- arch/x86/include/asm/msr.h | 11 +- arch/x86/include/asm/mtrr.h | 93 +----- arch/x86/include/asm/param.h | 1 - arch/x86/include/asm/perf_regs.h | 33 -- arch/x86/include/asm/poll.h | 1 - arch/x86/include/asm/posix_types.h | 10 - arch/x86/include/asm/posix_types_32.h | 25 -- arch/x86/include/asm/posix_types_64.h | 19 -- arch/x86/include/asm/posix_types_x32.h | 19 -- arch/x86/include/asm/prctl.h | 9 - arch/x86/include/asm/processor-flags.h | 97 +----- arch/x86/include/asm/ptrace-abi.h | 87 ----- arch/x86/include/asm/ptrace.h | 75 +---- arch/x86/include/asm/resource.h | 1 - arch/x86/include/asm/sembuf.h | 24 -- arch/x86/include/asm/setup.h | 5 +- arch/x86/include/asm/shmbuf.h | 1 - arch/x86/include/asm/sigcontext.h | 216 +----------- arch/x86/include/asm/sigcontext32.h | 77 ----- arch/x86/include/asm/siginfo.h | 16 - arch/x86/include/asm/signal.h | 140 +------- arch/x86/include/asm/socket.h | 1 - arch/x86/include/asm/sockios.h | 1 - arch/x86/include/asm/stat.h | 135 -------- arch/x86/include/asm/statfs.h | 12 - arch/x86/include/asm/svm.h | 132 +------- arch/x86/include/asm/swab.h | 36 -- arch/x86/include/asm/termbits.h | 1 - arch/x86/include/asm/termios.h | 1 - arch/x86/include/asm/types.h | 6 - arch/x86/include/asm/ucontext.h | 12 - arch/x86/include/asm/unistd.h | 14 +- arch/x86/include/asm/vm86.h | 128 +------- arch/x86/include/asm/vmx.h | 89 +---- arch/x86/include/asm/vsyscall.h | 16 +- arch/x86/include/uapi/asm/Kbuild | 58 ++++ arch/x86/include/uapi/asm/a.out.h | 20 ++ arch/x86/include/uapi/asm/auxvec.h | 19 ++ arch/x86/include/uapi/asm/bitsperlong.h | 13 + arch/x86/include/uapi/asm/boot.h | 10 + arch/x86/include/uapi/asm/bootparam.h | 139 ++++++++ arch/x86/include/uapi/asm/byteorder.h | 6 + arch/x86/include/uapi/asm/debugreg.h | 80 +++++ arch/x86/include/uapi/asm/e820.h | 75 +++++ arch/x86/include/uapi/asm/errno.h | 1 + arch/x86/include/uapi/asm/fcntl.h | 1 + arch/x86/include/uapi/asm/hw_breakpoint.h | 0 arch/x86/include/uapi/asm/hyperv.h | 194 +++++++++++ arch/x86/include/uapi/asm/ioctl.h | 1 + arch/x86/include/uapi/asm/ioctls.h | 1 + arch/x86/include/uapi/asm/ipcbuf.h | 1 + arch/x86/include/uapi/asm/ist.h | 29 ++ arch/x86/include/uapi/asm/kvm.h | 346 ++++++++++++++++++++ arch/x86/include/uapi/asm/kvm_para.h | 100 ++++++ arch/x86/include/uapi/asm/ldt.h | 40 +++ arch/x86/include/uapi/asm/mce.h | 121 +++++++ arch/x86/include/uapi/asm/mman.h | 11 + arch/x86/include/uapi/asm/msgbuf.h | 1 + arch/x86/include/uapi/asm/msr-index.h | 488 ++++++++++++++++++++++++++++ arch/x86/include/uapi/asm/msr.h | 15 + arch/x86/include/uapi/asm/mtrr.h | 117 +++++++ arch/x86/include/uapi/asm/param.h | 1 + arch/x86/include/uapi/asm/perf_regs.h | 33 ++ arch/x86/include/uapi/asm/poll.h | 1 + arch/x86/include/uapi/asm/posix_types.h | 9 + arch/x86/include/uapi/asm/posix_types_32.h | 25 ++ arch/x86/include/uapi/asm/posix_types_64.h | 19 ++ arch/x86/include/uapi/asm/posix_types_x32.h | 19 ++ arch/x86/include/uapi/asm/prctl.h | 9 + arch/x86/include/uapi/asm/processor-flags.h | 99 ++++++ arch/x86/include/uapi/asm/ptrace-abi.h | 87 +++++ arch/x86/include/uapi/asm/ptrace.h | 78 +++++ arch/x86/include/uapi/asm/resource.h | 1 + arch/x86/include/uapi/asm/sembuf.h | 24 ++ arch/x86/include/uapi/asm/setup.h | 0 arch/x86/include/uapi/asm/shmbuf.h | 1 + arch/x86/include/uapi/asm/sigcontext.h | 221 +++++++++++++ arch/x86/include/uapi/asm/sigcontext32.h | 77 +++++ arch/x86/include/uapi/asm/siginfo.h | 16 + arch/x86/include/uapi/asm/signal.h | 145 +++++++++ arch/x86/include/uapi/asm/socket.h | 1 + arch/x86/include/uapi/asm/sockios.h | 1 + arch/x86/include/uapi/asm/stat.h | 135 ++++++++ arch/x86/include/uapi/asm/statfs.h | 12 + arch/x86/include/uapi/asm/svm.h | 132 ++++++++ arch/x86/include/uapi/asm/swab.h | 36 ++ arch/x86/include/uapi/asm/termbits.h | 1 + arch/x86/include/uapi/asm/termios.h | 1 + arch/x86/include/uapi/asm/types.h | 6 + arch/x86/include/uapi/asm/ucontext.h | 12 + arch/x86/include/uapi/asm/unistd.h | 17 + arch/x86/include/uapi/asm/vm86.h | 129 ++++++++ arch/x86/include/uapi/asm/vmx.h | 109 +++++++ arch/x86/include/uapi/asm/vsyscall.h | 17 + 118 files changed, 3387 insertions(+), 3228 deletions(-) delete mode 100644 arch/x86/include/asm/a.out.h delete mode 100644 arch/x86/include/asm/auxvec.h delete mode 100644 arch/x86/include/asm/bitsperlong.h delete mode 100644 arch/x86/include/asm/bootparam.h delete mode 100644 arch/x86/include/asm/byteorder.h delete mode 100644 arch/x86/include/asm/errno.h delete mode 100644 arch/x86/include/asm/fcntl.h delete mode 100644 arch/x86/include/asm/hyperv.h delete mode 100644 arch/x86/include/asm/ioctl.h delete mode 100644 arch/x86/include/asm/ioctls.h delete mode 100644 arch/x86/include/asm/ipcbuf.h delete mode 100644 arch/x86/include/asm/kvm.h delete mode 100644 arch/x86/include/asm/ldt.h delete mode 100644 arch/x86/include/asm/mman.h delete mode 100644 arch/x86/include/asm/msgbuf.h delete mode 100644 arch/x86/include/asm/msr-index.h delete mode 100644 arch/x86/include/asm/param.h delete mode 100644 arch/x86/include/asm/perf_regs.h delete mode 100644 arch/x86/include/asm/poll.h delete mode 100644 arch/x86/include/asm/posix_types_32.h delete mode 100644 arch/x86/include/asm/posix_types_64.h delete mode 100644 arch/x86/include/asm/posix_types_x32.h delete mode 100644 arch/x86/include/asm/prctl.h delete mode 100644 arch/x86/include/asm/ptrace-abi.h delete mode 100644 arch/x86/include/asm/resource.h delete mode 100644 arch/x86/include/asm/sembuf.h delete mode 100644 arch/x86/include/asm/shmbuf.h delete mode 100644 arch/x86/include/asm/sigcontext32.h delete mode 100644 arch/x86/include/asm/siginfo.h delete mode 100644 arch/x86/include/asm/socket.h delete mode 100644 arch/x86/include/asm/sockios.h delete mode 100644 arch/x86/include/asm/stat.h delete mode 100644 arch/x86/include/asm/statfs.h delete mode 100644 arch/x86/include/asm/swab.h delete mode 100644 arch/x86/include/asm/termbits.h delete mode 100644 arch/x86/include/asm/termios.h delete mode 100644 arch/x86/include/asm/types.h delete mode 100644 arch/x86/include/asm/ucontext.h create mode 100644 arch/x86/include/uapi/asm/a.out.h create mode 100644 arch/x86/include/uapi/asm/auxvec.h create mode 100644 arch/x86/include/uapi/asm/bitsperlong.h create mode 100644 arch/x86/include/uapi/asm/boot.h create mode 100644 arch/x86/include/uapi/asm/bootparam.h create mode 100644 arch/x86/include/uapi/asm/byteorder.h create mode 100644 arch/x86/include/uapi/asm/debugreg.h create mode 100644 arch/x86/include/uapi/asm/e820.h create mode 100644 arch/x86/include/uapi/asm/errno.h create mode 100644 arch/x86/include/uapi/asm/fcntl.h create mode 100644 arch/x86/include/uapi/asm/hw_breakpoint.h create mode 100644 arch/x86/include/uapi/asm/hyperv.h create mode 100644 arch/x86/include/uapi/asm/ioctl.h create mode 100644 arch/x86/include/uapi/asm/ioctls.h create mode 100644 arch/x86/include/uapi/asm/ipcbuf.h create mode 100644 arch/x86/include/uapi/asm/ist.h create mode 100644 arch/x86/include/uapi/asm/kvm.h create mode 100644 arch/x86/include/uapi/asm/kvm_para.h create mode 100644 arch/x86/include/uapi/asm/ldt.h create mode 100644 arch/x86/include/uapi/asm/mce.h create mode 100644 arch/x86/include/uapi/asm/mman.h create mode 100644 arch/x86/include/uapi/asm/msgbuf.h create mode 100644 arch/x86/include/uapi/asm/msr-index.h create mode 100644 arch/x86/include/uapi/asm/msr.h create mode 100644 arch/x86/include/uapi/asm/mtrr.h create mode 100644 arch/x86/include/uapi/asm/param.h create mode 100644 arch/x86/include/uapi/asm/perf_regs.h create mode 100644 arch/x86/include/uapi/asm/poll.h create mode 100644 arch/x86/include/uapi/asm/posix_types.h create mode 100644 arch/x86/include/uapi/asm/posix_types_32.h create mode 100644 arch/x86/include/uapi/asm/posix_types_64.h create mode 100644 arch/x86/include/uapi/asm/posix_types_x32.h create mode 100644 arch/x86/include/uapi/asm/prctl.h create mode 100644 arch/x86/include/uapi/asm/processor-flags.h create mode 100644 arch/x86/include/uapi/asm/ptrace-abi.h create mode 100644 arch/x86/include/uapi/asm/ptrace.h create mode 100644 arch/x86/include/uapi/asm/resource.h create mode 100644 arch/x86/include/uapi/asm/sembuf.h create mode 100644 arch/x86/include/uapi/asm/setup.h create mode 100644 arch/x86/include/uapi/asm/shmbuf.h create mode 100644 arch/x86/include/uapi/asm/sigcontext.h create mode 100644 arch/x86/include/uapi/asm/sigcontext32.h create mode 100644 arch/x86/include/uapi/asm/siginfo.h create mode 100644 arch/x86/include/uapi/asm/signal.h create mode 100644 arch/x86/include/uapi/asm/socket.h create mode 100644 arch/x86/include/uapi/asm/sockios.h create mode 100644 arch/x86/include/uapi/asm/stat.h create mode 100644 arch/x86/include/uapi/asm/statfs.h create mode 100644 arch/x86/include/uapi/asm/svm.h create mode 100644 arch/x86/include/uapi/asm/swab.h create mode 100644 arch/x86/include/uapi/asm/termbits.h create mode 100644 arch/x86/include/uapi/asm/termios.h create mode 100644 arch/x86/include/uapi/asm/types.h create mode 100644 arch/x86/include/uapi/asm/ucontext.h create mode 100644 arch/x86/include/uapi/asm/unistd.h create mode 100644 arch/x86/include/uapi/asm/vm86.h create mode 100644 arch/x86/include/uapi/asm/vmx.h create mode 100644 arch/x86/include/uapi/asm/vsyscall.h (limited to 'arch/x86') diff --git a/arch/x86/include/asm/Kbuild b/arch/x86/include/asm/Kbuild index 79fd8a3418f9..7f669853317a 100644 --- a/arch/x86/include/asm/Kbuild +++ b/arch/x86/include/asm/Kbuild @@ -1,30 +1,4 @@ -include include/asm-generic/Kbuild.asm -header-y += boot.h -header-y += bootparam.h -header-y += debugreg.h -header-y += e820.h -header-y += hw_breakpoint.h -header-y += hyperv.h -header-y += ist.h -header-y += ldt.h -header-y += mce.h -header-y += msr-index.h -header-y += msr.h -header-y += mtrr.h -header-y += perf_regs.h -header-y += posix_types_32.h -header-y += posix_types_64.h -header-y += posix_types_x32.h -header-y += prctl.h -header-y += processor-flags.h -header-y += ptrace-abi.h -header-y += sigcontext32.h -header-y += svm.h -header-y += ucontext.h -header-y += vm86.h -header-y += vmx.h -header-y += vsyscall.h genhdr-y += unistd_32.h genhdr-y += unistd_64.h diff --git a/arch/x86/include/asm/a.out.h b/arch/x86/include/asm/a.out.h deleted file mode 100644 index 4684f97a5bbd..000000000000 --- a/arch/x86/include/asm/a.out.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef _ASM_X86_A_OUT_H -#define _ASM_X86_A_OUT_H - -struct exec -{ - unsigned int a_info; /* Use macros N_MAGIC, etc for access */ - unsigned a_text; /* length of text, in bytes */ - unsigned a_data; /* length of data, in bytes */ - unsigned a_bss; /* length of uninitialized data area for file, in bytes */ - unsigned a_syms; /* length of symbol table data in file, in bytes */ - unsigned a_entry; /* start address */ - unsigned a_trsize; /* length of relocation info for text, in bytes */ - unsigned a_drsize; /* length of relocation info for data, in bytes */ -}; - -#define N_TRSIZE(a) ((a).a_trsize) -#define N_DRSIZE(a) ((a).a_drsize) -#define N_SYMSIZE(a) ((a).a_syms) - -#endif /* _ASM_X86_A_OUT_H */ diff --git a/arch/x86/include/asm/auxvec.h b/arch/x86/include/asm/auxvec.h deleted file mode 100644 index 77203ac352de..000000000000 --- a/arch/x86/include/asm/auxvec.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef _ASM_X86_AUXVEC_H -#define _ASM_X86_AUXVEC_H -/* - * Architecture-neutral AT_ values in 0-17, leave some room - * for more of them, start the x86-specific ones at 32. - */ -#ifdef __i386__ -#define AT_SYSINFO 32 -#endif -#define AT_SYSINFO_EHDR 33 - -/* entries in ARCH_DLINFO: */ -#if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) -# define AT_VECTOR_SIZE_ARCH 2 -#else /* else it's non-compat x86-64 */ -# define AT_VECTOR_SIZE_ARCH 1 -#endif - -#endif /* _ASM_X86_AUXVEC_H */ diff --git a/arch/x86/include/asm/bitsperlong.h b/arch/x86/include/asm/bitsperlong.h deleted file mode 100644 index b0ae1c4dc791..000000000000 --- a/arch/x86/include/asm/bitsperlong.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef __ASM_X86_BITSPERLONG_H -#define __ASM_X86_BITSPERLONG_H - -#ifdef __x86_64__ -# define __BITS_PER_LONG 64 -#else -# define __BITS_PER_LONG 32 -#endif - -#include - -#endif /* __ASM_X86_BITSPERLONG_H */ - diff --git a/arch/x86/include/asm/boot.h b/arch/x86/include/asm/boot.h index b13fe63bdc59..4fa687a47a62 100644 --- a/arch/x86/include/asm/boot.h +++ b/arch/x86/include/asm/boot.h @@ -1,14 +1,9 @@ #ifndef _ASM_X86_BOOT_H #define _ASM_X86_BOOT_H -/* Internal svga startup constants */ -#define NORMAL_VGA 0xffff /* 80x25 mode */ -#define EXTENDED_VGA 0xfffe /* 80x50 mode */ -#define ASK_VGA 0xfffd /* ask for it at bootup */ - -#ifdef __KERNEL__ #include +#include /* Physical address where kernel should be loaded. */ #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \ @@ -42,6 +37,4 @@ #define BOOT_STACK_SIZE 0x1000 #endif -#endif /* __KERNEL__ */ - #endif /* _ASM_X86_BOOT_H */ diff --git a/arch/x86/include/asm/bootparam.h b/arch/x86/include/asm/bootparam.h deleted file mode 100644 index 92862cd90201..000000000000 --- a/arch/x86/include/asm/bootparam.h +++ /dev/null @@ -1,139 +0,0 @@ -#ifndef _ASM_X86_BOOTPARAM_H -#define _ASM_X86_BOOTPARAM_H - -#include -#include -#include -#include -#include -#include -#include