diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 21:03:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 21:03:30 -0500 |
commit | dca88ad6915b65f6e037f8c3e632fcd92a70bd88 (patch) | |
tree | a3dcbe53310997dcc37c7d49129c48febef53992 /arch | |
parent | fed474857efbed79cd390d0aee224231ca718f63 (diff) | |
parent | 1632b9e2a14ce9f4e08faf6c4380431d63319bd3 (diff) |
Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
* 'for-next' of git://git.infradead.org/users/dhowells/linux-headers:
UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
UAPI: Don't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h
UAPI: Fix AHZ multiple inclusion when __KERNEL__ is removed
UAPI: Make linux/patchkey.h easier to parse
UAPI: Fix nested __KERNEL__ guards in video/edid.h
UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter
UAPI: Guard linux/cuda.h
UAPI: Guard linux/pmu.h
UAPI: Guard linux/isdn_divertif.h
UAPI: Guard linux/sound.h
UAPI: Rearrange definition of HZ in asm-generic/param.h
UAPI: Make FRV use asm-generic/param.h
UAPI: Make M32R use asm-generic/param.h
UAPI: Make MN10300 use asm-generic/param.h
UAPI: elf_read_implies_exec() is a kernel-only feature - so hide from userspace
UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h
UAPI: Fix arch/mips/include/asm/Kbuild to have separate header-y lines
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/hwcap.h | 4 | ||||
-rw-r--r-- | arch/arm/include/asm/swab.h | 7 | ||||
-rw-r--r-- | arch/arm/include/asm/unistd.h | 4 | ||||
-rw-r--r-- | arch/frv/include/asm/param.h | 16 | ||||
-rw-r--r-- | arch/ia64/include/asm/intrinsics.h | 21 | ||||
-rw-r--r-- | arch/m32r/include/asm/param.h | 18 | ||||
-rw-r--r-- | arch/mips/include/asm/Kbuild | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/types.h | 10 | ||||
-rw-r--r-- | arch/mn10300/include/asm/param.h | 18 | ||||
-rw-r--r-- | arch/s390/include/asm/chpid.h | 2 | ||||
-rw-r--r-- | arch/s390/include/asm/itcw.h | 2 | ||||
-rw-r--r-- | arch/s390/include/asm/mman.h | 4 | ||||
-rw-r--r-- | arch/sparc/include/asm/siginfo.h | 2 | ||||
-rw-r--r-- | arch/tile/include/asm/signal.h | 4 |
14 files changed, 45 insertions, 71 deletions
diff --git a/arch/arm/include/asm/hwcap.h b/arch/arm/include/asm/hwcap.h index c93a22a8b924..917626128a1d 100644 --- a/arch/arm/include/asm/hwcap.h +++ b/arch/arm/include/asm/hwcap.h | |||
@@ -25,7 +25,8 @@ | |||
25 | #define HWCAP_IDIVT (1 << 18) | 25 | #define HWCAP_IDIVT (1 << 18) |
26 | #define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) | 26 | #define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) |
27 | 27 | ||
28 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) | 28 | #if defined(__KERNEL__) |
29 | #if !defined(__ASSEMBLY__) | ||
29 | /* | 30 | /* |
30 | * This yields a mask that user programs can use to figure out what | 31 | * This yields a mask that user programs can use to figure out what |
31 | * instruction set this cpu supports. | 32 | * instruction set this cpu supports. |
@@ -33,5 +34,6 @@ | |||
33 | #define ELF_HWCAP (elf_hwcap) | 34 | #define ELF_HWCAP (elf_hwcap) |
34 | extern unsigned int elf_hwcap; | 35 | extern unsigned int elf_hwcap; |
35 | #endif | 36 | #endif |
37 | #endif | ||
36 | 38 | ||
37 | #endif | 39 | #endif |
diff --git a/arch/arm/include/asm/swab.h b/arch/arm/include/asm/swab.h index 32ee164a2f6b..b859d82e30ca 100644 --- a/arch/arm/include/asm/swab.h +++ b/arch/arm/include/asm/swab.h | |||
@@ -22,7 +22,8 @@ | |||
22 | # define __SWAB_64_THRU_32__ | 22 | # define __SWAB_64_THRU_32__ |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | #if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >= 6 | 25 | #if defined(__KERNEL__) |
26 | #if __LINUX_ARM_ARCH__ >= 6 | ||
26 | 27 | ||
27 | static inline __attribute_const__ __u32 __arch_swahb32(__u32 x) | 28 | static inline __attribute_const__ __u32 __arch_swahb32(__u32 x) |
28 | { | 29 | { |
@@ -39,8 +40,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
39 | } | 40 | } |
40 | #define __arch_swab32 __arch_swab32 | 41 | #define __arch_swab32 __arch_swab32 |
41 | 42 | ||
42 | #else | 43 | #endif |
44 | #endif | ||
43 | 45 | ||
46 | #if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ < 6 | ||
44 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | 47 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) |
45 | { | 48 | { |
46 | __u32 t; | 49 | __u32 t; |
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 4a1123783806..512cd1473454 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
@@ -427,7 +427,8 @@ | |||
427 | /* | 427 | /* |
428 | * The following syscalls are obsolete and no longer available for EABI. | 428 | * The following syscalls are obsolete and no longer available for EABI. |
429 | */ | 429 | */ |
430 | #if defined(__ARM_EABI__) && !defined(__KERNEL__) | 430 | #if !defined(__KERNEL__) |
431 | #if defined(__ARM_EABI__) | ||
431 | #undef __NR_time | 432 | #undef __NR_time |
432 | #undef __NR_umount | 433 | #undef __NR_umount |
433 | #undef __NR_stime | 434 | #undef __NR_stime |
@@ -441,6 +442,7 @@ | |||
441 | #undef __NR_syscall | 442 | #undef __NR_syscall |
442 | #undef __NR_ipc | 443 | #undef __NR_ipc |
443 | #endif | 444 | #endif |
445 | #endif | ||
444 | 446 | ||
445 | #ifdef __KERNEL__ | 447 | #ifdef __KERNEL__ |
446 | 448 | ||
diff --git a/arch/frv/include/asm/param.h b/arch/frv/include/asm/param.h index 6859dd503ed3..a52dca9a9566 100644 --- a/arch/frv/include/asm/param.h +++ b/arch/frv/include/asm/param.h | |||
@@ -1,22 +1,8 @@ | |||
1 | #ifndef _ASM_PARAM_H | 1 | #ifndef _ASM_PARAM_H |
2 | #define _ASM_PARAM_H | 2 | #define _ASM_PARAM_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | #define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
6 | #define USER_HZ 100 /* .. some user interfaces are in "ticks" */ | ||
7 | #define CLOCKS_PER_SEC (USER_HZ) /* like times() */ | ||
8 | #endif | ||
9 | |||
10 | #ifndef HZ | ||
11 | #define HZ 100 | ||
12 | #endif | ||
13 | |||
14 | #define EXEC_PAGESIZE 16384 | 4 | #define EXEC_PAGESIZE 16384 |
15 | 5 | ||
16 | #ifndef NOGROUP | 6 | #include <asm-generic/param.h> |
17 | #define NOGROUP (-1) | ||
18 | #endif | ||
19 | |||
20 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
21 | 7 | ||
22 | #endif /* _ASM_PARAM_H */ | 8 | #endif /* _ASM_PARAM_H */ |
diff --git a/arch/ia64/include/asm/intrinsics.h b/arch/ia64/include/asm/intrinsics.h index 111ed5222892..e4076b511829 100644 --- a/arch/ia64/include/asm/intrinsics.h +++ b/arch/ia64/include/asm/intrinsics.h | |||
@@ -201,16 +201,21 @@ extern long ia64_cmpxchg_called_with_bad_pointer (void); | |||
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | #ifndef __ASSEMBLY__ | 203 | #ifndef __ASSEMBLY__ |
204 | #if defined(CONFIG_PARAVIRT) && defined(__KERNEL__) | 204 | |
205 | #ifdef ASM_SUPPORTED | ||
206 | # define IA64_INTRINSIC_API(name) paravirt_ ## name | ||
207 | #else | ||
208 | # define IA64_INTRINSIC_API(name) pv_cpu_ops.name | ||
209 | #endif | ||
210 | #define IA64_INTRINSIC_MACRO(name) paravirt_ ## name | ||
211 | #else | ||
212 | #define IA64_INTRINSIC_API(name) ia64_native_ ## name | 205 | #define IA64_INTRINSIC_API(name) ia64_native_ ## name |
213 | #define IA64_INTRINSIC_MACRO(name) ia64_native_ ## name | 206 | #define IA64_INTRINSIC_MACRO(name) ia64_native_ ## name |
207 | |||
208 | #if defined(__KERNEL__) | ||
209 | #if defined(CONFIG_PARAVIRT) | ||
210 | # undef IA64_INTRINSIC_API | ||
211 | # undef IA64_INTRINSIC_MACRO | ||
212 | # ifdef ASM_SUPPORTED | ||
213 | # define IA64_INTRINSIC_API(name) paravirt_ ## name | ||
214 | # else | ||
215 | # define IA64_INTRINSIC_API(name) pv_cpu_ops.name | ||
216 | # endif | ||
217 | #define IA64_INTRINSIC_MACRO(name) paravirt_ ## name | ||
218 | #endif | ||
214 | #endif | 219 | #endif |
215 | 220 | ||
216 | /************************************************/ | 221 | /************************************************/ |
diff --git a/arch/m32r/include/asm/param.h b/arch/m32r/include/asm/param.h index 94c770196048..fa207bdf96e7 100644 --- a/arch/m32r/include/asm/param.h +++ b/arch/m32r/include/asm/param.h | |||
@@ -1,23 +1,7 @@ | |||
1 | #ifndef _ASM_M32R_PARAM_H | 1 | #ifndef _ASM_M32R_PARAM_H |
2 | #define _ASM_M32R_PARAM_H | 2 | #define _ASM_M32R_PARAM_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | 4 | #include <asm-generic/param.h> |
5 | # define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
6 | # define USER_HZ 100 /* .. some user interfaces are in "ticks" */ | ||
7 | # define CLOCKS_PER_SEC (USER_HZ) /* like times() */ | ||
8 | #endif | ||
9 | |||
10 | #ifndef HZ | ||
11 | #define HZ 100 | ||
12 | #endif | ||
13 | |||
14 | #define EXEC_PAGESIZE 4096 | ||
15 | |||
16 | #ifndef NOGROUP | ||
17 | #define NOGROUP (-1) | ||
18 | #endif | ||
19 | |||
20 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
21 | 5 | ||
22 | #endif /* _ASM_M32R_PARAM_H */ | 6 | #endif /* _ASM_M32R_PARAM_H */ |
23 | 7 | ||
diff --git a/arch/mips/include/asm/Kbuild b/arch/mips/include/asm/Kbuild index 7897f05e3165..f53f9ca73996 100644 --- a/arch/mips/include/asm/Kbuild +++ b/arch/mips/include/asm/Kbuild | |||
@@ -1,3 +1,5 @@ | |||
1 | include include/asm-generic/Kbuild.asm | 1 | include include/asm-generic/Kbuild.asm |
2 | 2 | ||
3 | header-y += cachectl.h sgidefs.h sysmips.h | 3 | header-y += cachectl.h |
4 | header-y += sgidefs.h | ||
5 | header-y += sysmips.h | ||
diff --git a/arch/mips/include/asm/types.h b/arch/mips/include/asm/types.h index 43bf70ebd3a2..1228b25b290a 100644 --- a/arch/mips/include/asm/types.h +++ b/arch/mips/include/asm/types.h | |||
@@ -15,10 +15,14 @@ | |||
15 | * We don't use int-l64.h for the kernel anymore but still use it for | 15 | * We don't use int-l64.h for the kernel anymore but still use it for |
16 | * userspace to avoid code changes. | 16 | * userspace to avoid code changes. |
17 | */ | 17 | */ |
18 | #if (_MIPS_SZLONG == 64) && !defined(__KERNEL__) | 18 | #ifdef __KERNEL__ |
19 | # include <asm-generic/int-l64.h> | ||
20 | #else | ||
21 | # include <asm-generic/int-ll64.h> | 19 | # include <asm-generic/int-ll64.h> |
20 | #else | ||
21 | # if _MIPS_SZLONG == 64 | ||
22 | # include <asm-generic/int-l64.h> | ||
23 | # else | ||
24 | # include <asm-generic/int-ll64.h> | ||
25 | # endif | ||
22 | #endif | 26 | #endif |
23 | 27 | ||
24 | /* | 28 | /* |
diff --git a/arch/mn10300/include/asm/param.h b/arch/mn10300/include/asm/param.h index 789b1df41fcb..02a0ca6f13ce 100644 --- a/arch/mn10300/include/asm/param.h +++ b/arch/mn10300/include/asm/param.h | |||
@@ -11,24 +11,8 @@ | |||
11 | #ifndef _ASM_PARAM_H | 11 | #ifndef _ASM_PARAM_H |
12 | #define _ASM_PARAM_H | 12 | #define _ASM_PARAM_H |
13 | 13 | ||
14 | #ifdef __KERNEL__ | 14 | #include <asm-generic/param.h> |
15 | #define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
16 | #define USER_HZ 100 /* .. some user interfaces are in | ||
17 | * "ticks" */ | ||
18 | #define CLOCKS_PER_SEC (USER_HZ) /* like times() */ | ||
19 | #endif | ||
20 | 15 | ||
21 | #ifndef HZ | ||
22 | #define HZ 100 | ||
23 | #endif | ||
24 | |||
25 | #define EXEC_PAGESIZE 4096 | ||
26 | |||
27 | #ifndef NOGROUP | ||
28 | #define NOGROUP (-1) | ||
29 | #endif | ||
30 | |||
31 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
32 | #define COMMAND_LINE_SIZE 256 | 16 | #define COMMAND_LINE_SIZE 256 |
33 | 17 | ||
34 | #endif /* _ASM_PARAM_H */ | 18 | #endif /* _ASM_PARAM_H */ |
diff --git a/arch/s390/include/asm/chpid.h b/arch/s390/include/asm/chpid.h index fc71d8a6709b..8e88e2221771 100644 --- a/arch/s390/include/asm/chpid.h +++ b/arch/s390/include/asm/chpid.h | |||
@@ -6,7 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifndef _ASM_S390_CHPID_H | 8 | #ifndef _ASM_S390_CHPID_H |
9 | #define _ASM_S390_CHPID_H _ASM_S390_CHPID_H | 9 | #define _ASM_S390_CHPID_H |
10 | 10 | ||
11 | #include <linux/string.h> | 11 | #include <linux/string.h> |
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
diff --git a/arch/s390/include/asm/itcw.h b/arch/s390/include/asm/itcw.h index a9bc5c36b32a..fb1bedd3dc0d 100644 --- a/arch/s390/include/asm/itcw.h +++ b/arch/s390/include/asm/itcw.h | |||
@@ -6,7 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifndef _ASM_S390_ITCW_H | 8 | #ifndef _ASM_S390_ITCW_H |
9 | #define _ASM_S390_ITCW_H _ASM_S390_ITCW_H | 9 | #define _ASM_S390_ITCW_H |
10 | 10 | ||
11 | #include <linux/types.h> | 11 | #include <linux/types.h> |
12 | #include <asm/fcx.h> | 12 | #include <asm/fcx.h> |
diff --git a/arch/s390/include/asm/mman.h b/arch/s390/include/asm/mman.h index 4e9c8ae0a637..d49760e63506 100644 --- a/arch/s390/include/asm/mman.h +++ b/arch/s390/include/asm/mman.h | |||
@@ -11,9 +11,11 @@ | |||
11 | 11 | ||
12 | #include <asm-generic/mman.h> | 12 | #include <asm-generic/mman.h> |
13 | 13 | ||
14 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) && defined(CONFIG_64BIT) | 14 | #if defined(__KERNEL__) |
15 | #if !defined(__ASSEMBLY__) && defined(CONFIG_64BIT) | ||
15 | int s390_mmap_check(unsigned long addr, unsigned long len); | 16 | int s390_mmap_check(unsigned long addr, unsigned long len); |
16 | #define arch_mmap_check(addr,len,flags) s390_mmap_check(addr,len) | 17 | #define arch_mmap_check(addr,len,flags) s390_mmap_check(addr,len) |
17 | #endif | 18 | #endif |
19 | #endif | ||
18 | 20 | ||
19 | #endif /* __S390_MMAN_H__ */ | 21 | #endif /* __S390_MMAN_H__ */ |
diff --git a/arch/sparc/include/asm/siginfo.h b/arch/sparc/include/asm/siginfo.h index 988e5d8ed11a..215900fce21b 100644 --- a/arch/sparc/include/asm/siginfo.h +++ b/arch/sparc/include/asm/siginfo.h | |||
@@ -16,8 +16,6 @@ | |||
16 | 16 | ||
17 | #ifdef __KERNEL__ | 17 | #ifdef __KERNEL__ |
18 | 18 | ||
19 | #include <linux/compat.h> | ||
20 | |||
21 | #ifdef CONFIG_COMPAT | 19 | #ifdef CONFIG_COMPAT |
22 | 20 | ||
23 | struct compat_siginfo; | 21 | struct compat_siginfo; |
diff --git a/arch/tile/include/asm/signal.h b/arch/tile/include/asm/signal.h index 1e1e616783eb..1e5e49aad548 100644 --- a/arch/tile/include/asm/signal.h +++ b/arch/tile/include/asm/signal.h | |||
@@ -23,7 +23,8 @@ | |||
23 | 23 | ||
24 | #include <asm-generic/signal.h> | 24 | #include <asm-generic/signal.h> |
25 | 25 | ||
26 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) | 26 | #if defined(__KERNEL__) |
27 | #if !defined(__ASSEMBLY__) | ||
27 | struct pt_regs; | 28 | struct pt_regs; |
28 | int restore_sigcontext(struct pt_regs *, struct sigcontext __user *); | 29 | int restore_sigcontext(struct pt_regs *, struct sigcontext __user *); |
29 | int setup_sigcontext(struct sigcontext __user *, struct pt_regs *); | 30 | int setup_sigcontext(struct sigcontext __user *, struct pt_regs *); |
@@ -33,5 +34,6 @@ void signal_fault(const char *type, struct pt_regs *, | |||
33 | void trace_unhandled_signal(const char *type, struct pt_regs *regs, | 34 | void trace_unhandled_signal(const char *type, struct pt_regs *regs, |
34 | unsigned long address, int signo); | 35 | unsigned long address, int signo); |
35 | #endif | 36 | #endif |
37 | #endif | ||
36 | 38 | ||
37 | #endif /* _ASM_TILE_SIGNAL_H */ | 39 | #endif /* _ASM_TILE_SIGNAL_H */ |