diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2012-10-04 16:57:00 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2012-10-04 16:57:51 -0400 |
| commit | c37d6154c0b9163c27e53cc1d0be3867b4abd760 (patch) | |
| tree | 7a24522c56d1cb284dff1d3c225bbdaba0901bb5 /include/asm-generic | |
| parent | e7a570ff7dff9af6e54ff5e580a61ec7652137a0 (diff) | |
| parent | 8a1ab3155c2ac7fbe5f2038d6e26efeb607a1498 (diff) | |
Merge branch 'disintegrate-asm-generic' of git://git.infradead.org/users/dhowells/linux-headers into asm-generic
Patches from David Howells <dhowells@redhat.com>:
This is to complete part of the UAPI disintegration for which the
preparatory patches were pulled recently.
Note that there are some fixup patches which are at the base of the
branch aimed at you, plus all arches get the asm-generic branch merged in too.
* 'disintegrate-asm-generic' of git://git.infradead.org/users/dhowells/linux-headers:
UAPI: (Scripted) Disintegrate include/asm-generic
UAPI: Fix conditional header installation handling (notably kvm_para.h on m68k)
c6x: remove c6x signal.h
UAPI: Split compound conditionals containing __KERNEL__ in Arm64
UAPI: Fix the guards on various asm/unistd.h files
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/asm-generic')
42 files changed, 79 insertions, 3076 deletions
diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild index 2c85a0f647b7..e69de29bb2d1 100644 --- a/include/asm-generic/Kbuild +++ b/include/asm-generic/Kbuild | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | header-y += auxvec.h | ||
| 2 | header-y += bitsperlong.h | ||
| 3 | header-y += errno-base.h | ||
| 4 | header-y += errno.h | ||
| 5 | header-y += fcntl.h | ||
| 6 | header-y += int-l64.h | ||
| 7 | header-y += int-ll64.h | ||
| 8 | header-y += ioctl.h | ||
| 9 | header-y += ioctls.h | ||
| 10 | header-y += ipcbuf.h | ||
| 11 | header-y += kvm_para.h | ||
| 12 | header-y += mman-common.h | ||
| 13 | header-y += mman.h | ||
| 14 | header-y += msgbuf.h | ||
| 15 | header-y += param.h | ||
| 16 | header-y += poll.h | ||
| 17 | header-y += posix_types.h | ||
| 18 | header-y += resource.h | ||
| 19 | header-y += sembuf.h | ||
| 20 | header-y += setup.h | ||
| 21 | header-y += shmbuf.h | ||
| 22 | header-y += shmparam.h | ||
| 23 | header-y += siginfo.h | ||
| 24 | header-y += signal-defs.h | ||
| 25 | header-y += signal.h | ||
| 26 | header-y += socket.h | ||
| 27 | header-y += sockios.h | ||
| 28 | header-y += stat.h | ||
| 29 | header-y += statfs.h | ||
| 30 | header-y += swab.h | ||
| 31 | header-y += termbits.h | ||
| 32 | header-y += termios.h | ||
| 33 | header-y += types.h | ||
| 34 | header-y += ucontext.h | ||
| 35 | header-y += unistd.h | ||
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm index c5d2e5dd871b..d2ee86b4c091 100644 --- a/include/asm-generic/Kbuild.asm +++ b/include/asm-generic/Kbuild.asm | |||
| @@ -1,45 +1 @@ | |||
| 1 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm.h \ | include include/uapi/asm-generic/Kbuild.asm | |
| 2 | $(srctree)/include/asm-$(SRCARCH)/kvm.h),) | ||
| 3 | header-y += kvm.h | ||
| 4 | endif | ||
| 5 | |||
| 6 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \ | ||
| 7 | $(srctree)/include/asm-$(SRCARCH)/kvm_para.h),) | ||
| 8 | header-y += kvm_para.h | ||
| 9 | endif | ||
| 10 | |||
| 11 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/a.out.h \ | ||
| 12 | $(srctree)/include/asm-$(SRCARCH)/a.out.h),) | ||
| 13 | header-y += a.out.h | ||
| 14 | endif | ||
| 15 | |||
| 16 | header-y += auxvec.h | ||
| 17 | header-y += bitsperlong.h | ||
| 18 | header-y += byteorder.h | ||
| 19 | header-y += errno.h | ||
| 20 | header-y += fcntl.h | ||
| 21 | header-y += ioctl.h | ||
| 22 | header-y += ioctls.h | ||
| 23 | header-y += ipcbuf.h | ||
| 24 | header-y += mman.h | ||
| 25 | header-y += msgbuf.h | ||
| 26 | header-y += param.h | ||
| 27 | header-y += poll.h | ||
| 28 | header-y += posix_types.h | ||
| 29 | header-y += ptrace.h | ||
| 30 | header-y += resource.h | ||
| 31 | header-y += sembuf.h | ||
| 32 | header-y += setup.h | ||
| 33 | header-y += shmbuf.h | ||
| 34 | header-y += sigcontext.h | ||
| 35 | header-y += siginfo.h | ||
| 36 | header-y += signal.h | ||
| 37 | header-y += socket.h | ||
| 38 | header-y += sockios.h | ||
| 39 | header-y += stat.h | ||
| 40 | header-y += statfs.h | ||
| 41 | header-y += swab.h | ||
| 42 | header-y += termbits.h | ||
| 43 | header-y += termios.h | ||
| 44 | header-y += types.h | ||
| 45 | header-y += unistd.h | ||
diff --git a/include/asm-generic/auxvec.h b/include/asm-generic/auxvec.h deleted file mode 100644 index b99573b0ad12..000000000000 --- a/include/asm-generic/auxvec.h +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | #ifndef __ASM_GENERIC_AUXVEC_H | ||
| 2 | #define __ASM_GENERIC_AUXVEC_H | ||
| 3 | /* | ||
| 4 | * Not all architectures need their own auxvec.h, the most | ||
| 5 | * common definitions are already in linux/auxvec.h. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #endif /* __ASM_GENERIC_AUXVEC_H */ | ||
diff --git a/include/asm-generic/bitops/builtin-__ffs.h b/include/asm-generic/bitops/builtin-__ffs.h new file mode 100644 index 000000000000..90041e3a41f0 --- /dev/null +++ b/include/asm-generic/bitops/builtin-__ffs.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef _ASM_GENERIC_BITOPS_BUILTIN___FFS_H_ | ||
| 2 | #define _ASM_GENERIC_BITOPS_BUILTIN___FFS_H_ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * __ffs - find first bit in word. | ||
| 6 | * @word: The word to search | ||
| 7 | * | ||
| 8 | * Undefined if no bit exists, so code should check against 0 first. | ||
| 9 | */ | ||
| 10 | static __always_inline unsigned long __ffs(unsigned long word) | ||
| 11 | { | ||
| 12 | return __builtin_ctzl(word); | ||
| 13 | } | ||
| 14 | |||
| 15 | #endif | ||
diff --git a/include/asm-generic/bitops/builtin-__fls.h b/include/asm-generic/bitops/builtin-__fls.h new file mode 100644 index 000000000000..0248f386635f --- /dev/null +++ b/include/asm-generic/bitops/builtin-__fls.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_ | ||
| 2 | #define _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * __fls - find last (most-significant) set bit in a long word | ||
| 6 | * @word: the word to search | ||
| 7 | * | ||
| 8 | * Undefined if no set bit exists, so code should check against 0 first. | ||
| 9 | */ | ||
| 10 | static __always_inline unsigned long __fls(unsigned long word) | ||
| 11 | { | ||
| 12 | return (sizeof(word) * 8) - 1 - __builtin_clzl(word); | ||
