diff options
Diffstat (limited to 'arch/s390')
26 files changed, 128 insertions, 162 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 19577aeffd7b..a94a3c3ae932 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -299,7 +299,7 @@ config WARN_STACK | |||
299 | This option enables the compiler options -mwarn-framesize and | 299 | This option enables the compiler options -mwarn-framesize and |
300 | -mwarn-dynamicstack. If the compiler supports these options it | 300 | -mwarn-dynamicstack. If the compiler supports these options it |
301 | will generate warnings for function which either use alloca or | 301 | will generate warnings for function which either use alloca or |
302 | create a stack frame bigger then CONFIG_WARN_STACK_SIZE. | 302 | create a stack frame bigger than CONFIG_WARN_STACK_SIZE. |
303 | 303 | ||
304 | Say N if you are unsure. | 304 | Say N if you are unsure. |
305 | 305 | ||
diff --git a/arch/s390/include/asm/Kbuild b/arch/s390/include/asm/Kbuild index 63a23415fba6..f2af4167bd5f 100644 --- a/arch/s390/include/asm/Kbuild +++ b/arch/s390/include/asm/Kbuild | |||
@@ -13,3 +13,4 @@ unifdef-y += cmb.h | |||
13 | unifdef-y += debug.h | 13 | unifdef-y += debug.h |
14 | unifdef-y += chpid.h | 14 | unifdef-y += chpid.h |
15 | unifdef-y += schid.h | 15 | unifdef-y += schid.h |
16 | unifdef-y += swab.h | ||
diff --git a/arch/s390/include/asm/atomic.h b/arch/s390/include/asm/atomic.h index 2d184655bc5d..de432f2de2d2 100644 --- a/arch/s390/include/asm/atomic.h +++ b/arch/s390/include/asm/atomic.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __ARCH_S390_ATOMIC__ | 2 | #define __ARCH_S390_ATOMIC__ |
3 | 3 | ||
4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
5 | #include <linux/types.h> | ||
5 | 6 | ||
6 | /* | 7 | /* |
7 | * include/asm-s390/atomic.h | 8 | * include/asm-s390/atomic.h |
@@ -23,9 +24,6 @@ | |||
23 | * S390 uses 'Compare And Swap' for atomicity in SMP enviroment | 24 | * S390 uses 'Compare And Swap' for atomicity in SMP enviroment |
24 | */ | 25 | */ |
25 | 26 | ||
26 | typedef struct { | ||
27 | int counter; | ||
28 | } __attribute__ ((aligned (4))) atomic_t; | ||
29 | #define ATOMIC_INIT(i) { (i) } | 27 | #define ATOMIC_INIT(i) { (i) } |
30 | 28 | ||
31 | #ifdef __KERNEL__ | 29 | #ifdef __KERNEL__ |
@@ -149,9 +147,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) | |||
149 | #undef __CS_LOOP | 147 | #undef __CS_LOOP |
150 | 148 | ||
151 | #ifdef __s390x__ | 149 | #ifdef __s390x__ |
152 | typedef struct { | ||
153 | long long counter; | ||
154 | } __attribute__ ((aligned (8))) atomic64_t; | ||
155 | #define ATOMIC64_INIT(i) { (i) } | 150 | #define ATOMIC64_INIT(i) { (i) } |
156 | 151 | ||
157 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2) | 152 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2) |
diff --git a/arch/s390/include/asm/byteorder.h b/arch/s390/include/asm/byteorder.h index 8bcf277c8468..b95a2b2933fb 100644 --- a/arch/s390/include/asm/byteorder.h +++ b/arch/s390/include/asm/byteorder.h | |||
@@ -1,95 +1,7 @@ | |||
1 | #ifndef _S390_BYTEORDER_H | 1 | #ifndef _S390_BYTEORDER_H |
2 | #define _S390_BYTEORDER_H | 2 | #define _S390_BYTEORDER_H |
3 | 3 | ||
4 | /* | 4 | #include <asm/swab.h> |
5 | * include/asm-s390/byteorder.h | 5 | #include <linux/byteorder/big_endian.h> |
6 | * | ||
7 | * S390 version | ||
8 | * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation | ||
9 | * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) | ||
10 | */ | ||
11 | |||
12 | #include <asm/types.h> | ||
13 | |||
14 | #define __BIG_ENDIAN | ||
15 | |||
16 | #ifndef __s390x__ | ||
17 | # define __SWAB_64_THRU_32__ | ||
18 | #endif | ||
19 | |||
20 | #ifdef __s390x__ | ||
21 | static inline __u64 __arch_swab64p(const __u64 *x) | ||
22 | { | ||
23 | __u64 result; | ||
24 | |||
25 | asm volatile("lrvg %0,%1" : "=d" (result) : "m" (*x)); | ||
26 | return result; | ||
27 | } | ||
28 | #define __arch_swab64p __arch_swab64p | ||
29 | |||
30 | static inline __u64 __arch_swab64(__u64 x) | ||
31 | { | ||
32 | __u64 result; | ||
33 | |||
34 | asm volatile("lrvgr %0,%1" : "=d" (result) : "d" (x)); | ||
35 | return result; | ||
36 | } | ||
37 | #define __arch_swab64 __arch_swab64 | ||
38 | |||
39 | static inline void __arch_swab64s(__u64 *x) | ||
40 | { | ||
41 | *x = __arch_swab64p(x); | ||
42 | } | ||
43 | #define __arch_swab64s __arch_swab64s | ||
44 | #endif /* __s390x__ */ | ||
45 | |||
46 | static inline __u32 __arch_swab32p(const __u32 *x) | ||
47 | { | ||
48 | __u32 result; | ||
49 | |||
50 | asm volatile( | ||
51 | #ifndef __s390x__ | ||
52 | " icm %0,8,3(%1)\n" | ||
53 | " icm %0,4,2(%1)\n" | ||
54 | " icm %0,2,1(%1)\n" | ||
55 | " ic %0,0(%1)" | ||
56 | : "=&d" (result) : "a" (x), "m" (*x) : "cc"); | ||
57 | #else /* __s390x__ */ | ||
58 | " lrv %0,%1" | ||
59 | : "=d" (result) : "m" (*x)); | ||
60 | #endif /* __s390x__ */ | ||
61 | return result; | ||
62 | } | ||
63 | #define __arch_swab32p __arch_swab32p | ||
64 | |||
65 | #ifdef __s390x__ | ||
66 | static inline __u32 __arch_swab32(__u32 x) | ||
67 | { | ||
68 | __u32 result; | ||
69 | |||
70 | asm volatile("lrvr %0,%1" : "=d" (result) : "d" (x)); | ||
71 | return result; | ||
72 | } | ||
73 | #define __arch_swab32 __arch_swab32 | ||
74 | #endif /* __s390x__ */ | ||
75 | |||
76 | static inline __u16 __arch_swab16p(const __u16 *x) | ||
77 | { | ||
78 | __u16 result; | ||
79 | |||
80 | asm volatile( | ||
81 | #ifndef __s390x__ | ||
82 | " icm %0,2,1(%1)\n" | ||
83 | " ic %0,0(%1)\n" | ||
84 | : "=&d" (result) : "a" (x), "m" (*x) : "cc"); | ||
85 | #else /* __s390x__ */ | ||
86 | " lrvh %0,%1" | ||
87 | : "=d" (result) : "m" (*x)); | ||
88 | #endif /* __s390x__ */ | ||
89 | return result; | ||
90 | } | ||
91 | #define __arch_swab16p __arch_swab16p | ||
92 | |||
93 | #include <linux/byteorder.h> | ||
94 | 6 | ||
95 | #endif /* _S390_BYTEORDER_H */ | 7 | #endif /* _S390_BYTEORDER_H */ |
diff --git a/arch/s390/include/asm/chpid.h b/arch/s390/include/asm/chpid.h index dfe3c7f3439a..fc71d8a6709b 100644 --- a/arch/s390/include/asm/chpid.h +++ b/arch/s390/include/asm/chpid.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #define _ASM_S390_CHPID_H _ASM_S390_CHPID_H | 9 | #define _ASM_S390_CHPID_H _ASM_S390_CHPID_H |
10 | 10 | ||
11 | #include <linux/string.h> | 11 | #include <linux/string.h> |
12 | #include <asm/types.h> | 12 | #include <linux/types.h> |
13 | 13 | ||
14 | #define __MAX_CHPID 255 | 14 | #define __MAX_CHPID 255 |
15 | 15 | ||
diff --git a/arch/s390/include/asm/chsc.h b/arch/s390/include/asm/chsc.h index d38d0cf62d4b..807997f7414b 100644 --- a/arch/s390/include/asm/chsc.h +++ b/arch/s390/include/asm/chsc.h | |||
@@ -8,6 +8,7 @@ | |||
8 | #ifndef _ASM_CHSC_H | 8 | #ifndef _ASM_CHSC_H |
9 | #define _ASM_CHSC_H | 9 | #define _ASM_CHSC_H |
10 | 10 | ||
11 | #include <linux/types.h> | ||
11 | #include <asm/chpid.h> | 12 | #include <asm/chpid.h> |
12 | #include <asm/schid.h> | 13 | #include <asm/schid.h> |
13 | 14 | ||
diff --git a/arch/s390/include/asm/cmb.h b/arch/s390/include/asm/cmb.h index 50196857d27a..39ae03294794 100644 --- a/arch/s390/include/asm/cmb.h +++ b/arch/s390/include/asm/cmb.h | |||
@@ -1,5 +1,8 @@ | |||
1 | #ifndef S390_CMB_H | 1 | #ifndef S390_CMB_H |
2 | #define S390_CMB_H | 2 | #define S390_CMB_H |
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
3 | /** | 6 | /** |
4 | * struct cmbdata - channel measurement block data for user space | 7 | * struct cmbdata - channel measurement block data for user space |
5 | * @size: size of the stored data | 8 | * @size: size of the stored data |
diff --git a/arch/s390/include/asm/dasd.h b/arch/s390/include/asm/dasd.h index 55b2b80cdf6e..e2db6f16d9c8 100644 --- a/arch/s390/include/asm/dasd.h +++ b/arch/s390/include/asm/dasd.h | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | #ifndef DASD_H | 15 | #ifndef DASD_H |
16 | #define DASD_H | 16 | #define DASD_H |
17 | #include <linux/types.h> | ||
17 | #include <linux/ioctl.h> | 18 | #include <linux/ioctl.h> |
18 | 19 | ||
19 | #define DASD_IOCTL_LETTER 'D' | 20 | #define DASD_IOCTL_LETTER 'D' |
@@ -78,6 +79,7 @@ typedef struct dasd_information2_t { | |||
78 | #define DASD_FEATURE_USEDIAG 0x02 | 79 | #define DASD_FEATURE_USEDIAG 0x02 |
79 | #define DASD_FEATURE_INITIAL_ONLINE 0x04 | 80 | #define DASD_FEATURE_INITIAL_ONLINE 0x04 |
80 | #define DASD_FEATURE_ERPLOG 0x08 | 81 | #define DASD_FEATURE_ERPLOG 0x08 |
82 | #define DASD_FEATURE_FAILFAST 0x10 | ||
81 | 83 | ||
82 | #define DASD_PARTN_BITS 2 | 84 | #define DASD_PARTN_BITS 2 |
83 | 85 | ||
diff --git a/arch/s390/include/asm/kvm.h b/arch/s390/include/asm/kvm.h index d74002f95794..e1f54654e3ae 100644 --- a/arch/s390/include/asm/kvm.h +++ b/arch/s390/include/asm/kvm.h | |||
@@ -13,7 +13,7 @@ | |||
13 | * Author(s): Carsten Otte <cotte@de.ibm.com> | 13 | * Author(s): Carsten Otte <cotte@de.ibm.com> |
14 | * Christian Borntraeger <borntraeger@de.ibm.com> | 14 | * Christian Borntraeger <borntraeger@de.ibm.com> |
15 | */ | 15 | */ |
16 | #include <asm/types.h> | 16 | #include <linux/types.h> |
17 | 17 | ||
18 | /* for KVM_GET_IRQCHIP and KVM_SET_IRQCHIP */ | 18 | /* for KVM_GET_IRQCHIP and KVM_SET_IRQCHIP */ |
19 | struct kvm_pic_state { | 19 | struct kvm_pic_state { |
diff --git a/arch/s390/include/asm/posix_types.h b/arch/s390/include/asm/posix_types.h index 397d93fba3a7..8cc113f92523 100644 --- a/arch/s390/include/asm/posix_types.h +++ b/arch/s390/include/asm/posix_types.h | |||
@@ -68,11 +68,7 @@ typedef unsigned short __kernel_old_dev_t; | |||
68 | #endif /* __s390x__ */ | 68 | #endif /* __s390x__ */ |
69 | 69 | ||
70 | typedef struct { | 70 | typedef struct { |
71 | #if defined(__KERNEL__) || defined(__USE_ALL) | ||
72 | int val[2]; | 71 | int val[2]; |
73 | #else /* !defined(__KERNEL__) && !defined(__USE_ALL)*/ | ||
74 | int __val[2]; | ||
75 | #endif /* !defined(__KERNEL__) && !defined(__USE_ALL)*/ | ||
76 | } __kernel_fsid_t; | 72 | } __kernel_fsid_t; |
77 | 73 | ||
78 | 74 | ||
diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h index 5396f9f12263..8920025c3c02 100644 --- a/arch/s390/include/asm/ptrace.h +++ b/arch/s390/include/asm/ptrace.h | |||
@@ -272,12 +272,15 @@ typedef struct | |||
272 | #define PSW_ASC_SECONDARY 0x0000800000000000UL | 272 | #define PSW_ASC_SECONDARY 0x0000800000000000UL |
273 | #define PSW_ASC_HOME 0x0000C00000000000UL | 273 | #define PSW_ASC_HOME 0x0000C00000000000UL |
274 | 274 | ||
275 | extern long psw_user32_bits; | ||
276 | |||
277 | #endif /* __s390x__ */ | 275 | #endif /* __s390x__ */ |
278 | 276 | ||
277 | #ifdef __KERNEL__ | ||
279 | extern long psw_kernel_bits; | 278 | extern long psw_kernel_bits; |
280 | extern long psw_user_bits; | 279 | extern long psw_user_bits; |
280 | #ifdef CONFIG_64BIT | ||
281 | extern long psw_user32_bits; | ||
282 | #endif | ||
283 | #endif | ||
281 | 284 | ||
282 | /* This macro merges a NEW PSW mask specified by the user into | 285 | /* This macro merges a NEW PSW mask specified by the user into |
283 | the currently active PSW mask CURRENT, modifying only those | 286 | the currently active PSW mask CURRENT, modifying only those |
diff --git a/arch/s390/include/asm/qeth.h b/arch/s390/include/asm/qeth.h index 930d378ef75a..06cbd1e8c943 100644 --- a/arch/s390/include/asm/qeth.h +++ b/arch/s390/include/asm/qeth.h | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | #ifndef __ASM_S390_QETH_IOCTL_H__ | 11 | #ifndef __ASM_S390_QETH_IOCTL_H__ |
12 | #define __ASM_S390_QETH_IOCTL_H__ | 12 | #define __ASM_S390_QETH_IOCTL_H__ |
13 | #include <linux/types.h> | ||
13 | #include <linux/ioctl.h> | 14 | #include <linux/ioctl.h> |
14 | 15 | ||
15 | #define SIOC_QETH_ARP_SET_NO_ENTRIES (SIOCDEVPRIVATE) | 16 | #define SIOC_QETH_ARP_SET_NO_ENTRIES (SIOCDEVPRIVATE) |
diff --git a/arch/s390/include/asm/s390_rdev.h b/arch/s390/include/asm/s390_rdev.h deleted file mode 100644 index 6fa20442a48c..000000000000 --- a/arch/s390/include/asm/s390_rdev.h +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* | ||
2 | * include/asm-s390/ccwdev.h | ||
3 | * | ||
4 | * Copyright (C) 2002,2005 IBM Deutschland Entwicklung GmbH, IBM Corporation | ||
5 | * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> | ||
6 | * Carsten Otte <cotte@de.ibm.com> | ||
7 | * | ||
8 | * Interface for s390 root device | ||
9 | */ | ||
10 | |||
11 | #ifndef _S390_RDEV_H_ | ||
12 | #define _S390_RDEV_H_ | ||
13 | extern struct device *s390_root_dev_register(const char *); | ||
14 | extern void s390_root_dev_unregister(struct device *); | ||
15 | #endif /* _S390_RDEV_H_ */ | ||
diff --git a/arch/s390/include/asm/schid.h b/arch/s390/include/asm/schid.h index 825503cf3dc2..3e4d401b4e45 100644 --- a/arch/s390/include/asm/schid.h +++ b/arch/s390/include/asm/schid.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef ASM_SCHID_H | 1 | #ifndef ASM_SCHID_H |
2 | #define ASM_SCHID_H | 2 | #define ASM_SCHID_H |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | |||
4 | struct subchannel_id { | 6 | struct subchannel_id { |
5 | __u32 cssid : 8; | 7 | __u32 cssid : 8; |
6 | __u32 : 4; | 8 | __u32 : 4; |
diff --git a/arch/s390/include/asm/swab.h b/arch/s390/include/asm/swab.h new file mode 100644 index 000000000000..eb18dc1f327b --- /dev/null +++ b/arch/s390/include/asm/swab.h | |||
@@ -0,0 +1,91 @@ | |||
1 | #ifndef _S390_SWAB_H | ||
2 | #define _S390_SWAB_H | ||
3 | |||
4 | /* | ||
5 | * include/asm-s390/swab.h | ||
6 | * | ||
7 | * S390 version | ||
8 | * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation | ||
9 | * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) | ||
10 | */ | ||
11 | |||
12 | #include <linux/types.h> | ||
13 | |||
14 | #ifndef __s390x__ | ||
15 | # define __SWAB_64_THRU_32__ | ||
16 | #endif | ||
17 | |||
18 | #ifdef __s390x__ | ||
19 | static inline __u64 __arch_swab64p(const __u64 *x) | ||
20 | { | ||
21 | __u64 result; | ||
22 | |||
23 | asm volatile("lrvg %0,%1" : "=d" (result) : "m" (*x)); | ||
24 | return result; | ||
25 | } | ||
26 | #define __arch_swab64p __arch_swab64p | ||
27 | |||
28 | static inline __u64 __arch_swab64(__u64 x) | ||
29 | { | ||
30 | __u64 result; | ||
31 | |||
32 | asm volatile("lrvgr %0,%1" : "=d" (result) : "d" (x)); | ||
33 | return result; | ||
34 | } | ||
35 | #define __arch_swab64 __arch_swab64 | ||
36 | |||
37 | static inline void __arch_swab64s(__u64 *x) | ||
38 | { | ||
39 | *x = __arch_swab64p(x); | ||
40 | } | ||
41 | #define __arch_swab64s __arch_swab64s | ||
42 | #endif /* __s390x__ */ | ||
43 | |||
44 | static inline __u32 __arch_swab32p(const __u32 *x) | ||
45 | { | ||
46 | __u32 result; | ||
47 | |||
48 | asm volatile( | ||
49 | #ifndef __s390x__ | ||
50 | " icm %0,8,3(%1)\n" | ||
51 | " icm %0,4,2(%1)\n" | ||
52 | " icm %0,2,1(%1)\n" | ||
53 | " ic %0,0(%1)" | ||
54 | : "=&d" (result) : "a" (x), "m" (*x) : "cc"); | ||
55 | #else /* __s390x__ */ | ||
56 | " lrv %0,%1" | ||
57 | : "=d" (result) : "m" (*x)); | ||
58 | #endif /* __s390x__ */ | ||
59 | return result; | ||
60 | } | ||
61 | #define __arch_swab32p __arch_swab32p | ||
62 | |||
63 | #ifdef __s390x__ | ||
64 | static inline __u32 __arch_swab32(__u32 x) | ||
65 | { | ||
66 | __u32 result; | ||
67 | |||
68 | asm volatile("lrvr %0,%1" : "=d" (result) : "d" (x)); | ||
69 | return result; | ||
70 | } | ||
71 | #define __arch_swab32 __arch_swab32 | ||
72 | #endif /* __s390x__ */ | ||
73 | |||
74 | static inline __u16 __arch_swab16p(const __u16 *x) | ||
75 | { | ||
76 | __u16 result; | ||
77 | |||
78 | asm volatile( | ||
79 | #ifndef __s390x__ | ||
80 | " icm %0,2,1(%1)\n" | ||
81 | " ic %0,0(%1)\n" | ||
82 | : "=&d" (result) : "a" (x), "m" (*x) : "cc"); | ||
83 | #else /* __s390x__ */ | ||
84 | " lrvh %0,%1" | ||
85 | : "=d" (result) : "m" (*x)); | ||
86 | #endif /* __s390x__ */ | ||
87 | return result; | ||
88 | } | ||
89 | #define __arch_swab16p __arch_swab16p | ||
90 | |||
91 | #endif /* _S390_SWAB_H */ | ||
diff --git a/arch/s390/include/asm/types.h b/arch/s390/include/asm/types.h index 41c547656130..3dc3fc228812 100644 --- a/arch/s390/include/asm/types.h +++ b/arch/s390/include/asm/types.h | |||
@@ -9,11 +9,7 @@ | |||
9 | #ifndef _S390_TYPES_H | 9 | #ifndef _S390_TYPES_H |
10 | #define _S390_TYPES_H | 10 | #define _S390_TYPES_H |
11 | 11 | ||
12 | #ifndef __s390x__ | 12 | #include <asm-generic/int-ll64.h> |
13 | # include <asm-generic/int-ll64.h> | ||
14 | #else | ||
15 | # include <asm-generic/int-l64.h> | ||
16 | #endif | ||
17 | 13 | ||
18 | #ifndef __ASSEMBLY__ | 14 | #ifndef __ASSEMBLY__ |
19 | 15 | ||
diff --git a/arch/s390/kernel/entry.h b/arch/s390/kernel/entry.h index 6b1896345eda..a65afc91e8aa 100644 --- a/arch/s390/kernel/entry.h +++ b/arch/s390/kernel/entry.h | |||
@@ -54,7 +54,5 @@ long sys_sigreturn(void); | |||
54 | long sys_rt_sigreturn(void); | 54 | long sys_rt_sigreturn(void); |
55 | long sys32_sigreturn(void); | 55 | long sys32_sigreturn(void); |
56 | long sys32_rt_sigreturn(void); | 56 | long sys32_rt_sigreturn(void); |
57 | long old_select(struct sel_arg_struct __user *arg); | ||
58 | long sys_ptrace(long request, long pid, long addr, long data); | ||
59 | 57 | ||
60 | #endif /* _ENTRY_H */ | 58 | #endif /* _ENTRY_H */ |
diff --git a/arch/s390/kernel/kprobes.c b/arch/s390/kernel/kprobes.c index 569079ec4ff0..a01cf0284db2 100644 --- a/arch/s390/kernel/kprobes.c +++ b/arch/s390/kernel/kprobes.c | |||
@@ -218,9 +218,10 @@ void __kprobes arch_disarm_kprobe(struct kprobe *p) | |||
218 | 218 | ||
219 | void __kprobes arch_remove_kprobe(struct kprobe *p) | 219 | void __kprobes arch_remove_kprobe(struct kprobe *p) |
220 | { | 220 | { |
221 | mutex_lock(&kprobe_mutex); | 221 | if (p->ainsn.insn) { |
222 | free_insn_slot(p->ainsn.insn, 0); | 222 | free_insn_slot(p->ainsn.insn, 0); |
223 | mutex_unlock(&kprobe_mutex); | 223 | p->ainsn.insn = NULL; |
224 | } | ||
224 | } | 225 | } |
225 | 226 | ||
226 | static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs) | 227 | static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs) |
@@ -381,7 +382,7 @@ static int __kprobes trampoline_probe_handler(struct kprobe *p, | |||
381 | /* | 382 | /* |
382 | * It is possible to have multiple instances associated with a given | 383 | * It is possible to have multiple instances associated with a given |
383 | * task either because an multiple functions in the call path | 384 | * task either because an multiple functions in the call path |
384 | * have a return probe installed on them, and/or more then one return | 385 | * have a return probe installed on them, and/or more than one return |
385 | * return probe was registered for a target function. | 386 | * return probe was registered for a target function. |
386 | * | 387 | * |
387 | * We can handle this because: | 388 | * We can handle this because: |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 9c0ccb532a45..2d337cbb9329 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -685,7 +685,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
685 | if (MACHINE_HAS_IEEE) | 685 | if (MACHINE_HAS_IEEE) |
686 | lowcore->extended_save_area_addr = (u32) save_area; | 686 | lowcore->extended_save_area_addr = (u32) save_area; |
687 | #else | 687 | #else |
688 | BUG_ON(vdso_alloc_per_cpu(smp_processor_id(), lowcore)); | 688 | if (vdso_alloc_per_cpu(smp_processor_id(), lowcore)) |
689 | BUG(); | ||
689 | #endif | 690 | #endif |
690 | set_prefix((u32)(unsigned long) lowcore); | 691 | set_prefix((u32)(unsigned long) lowcore); |
691 | local_mcck_enable(); | 692 | local_mcck_enable(); |
diff --git a/arch/s390/kernel/sys_s390.c b/arch/s390/kernel/sys_s390.c index 4fe952e557ac..c34be4568b80 100644 --- a/arch/s390/kernel/sys_s390.c +++ b/arch/s390/kernel/sys_s390.c | |||
@@ -103,25 +103,6 @@ out: | |||
103 | return error; | 103 | return error; |
104 | } | 104 | } |
105 | 105 | ||
106 | #ifndef CONFIG_64BIT | ||
107 | struct sel_arg_struct { | ||
108 | unsigned long n; | ||
109 | fd_set __user *inp, *outp, *exp; | ||
110 | struct timeval __user *tvp; | ||
111 | }; | ||
112 | |||
113 | asmlinkage long old_select(struct sel_arg_struct __user *arg) | ||
114 | { | ||
115 | struct sel_arg_struct a; | ||
116 | |||
117 | if (copy_from_user(&a, arg, sizeof(a))) | ||
118 | return -EFAULT; | ||
119 | /* sys_select() does the appropriate kernel locking */ | ||
120 | return sys_select(a.n, a.inp, a.outp, a.exp, a.tvp); | ||
121 | |||
122 | } | ||
123 | #endif /* CONFIG_64BIT */ | ||
124 | |||
125 | /* | 106 | /* |
126 | * sys_ipc() is the de-multiplexer for the SysV IPC calls.. | 107 | * sys_ipc() is the de-multiplexer for the SysV IPC calls.. |
127 | * | 108 | * |
diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index 25a6a82f1c02..690e17819686 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c | |||
@@ -322,7 +322,8 @@ static int __init vdso_init(void) | |||
322 | vdso64_pagelist[vdso64_pages - 1] = virt_to_page(vdso_data); | 322 | vdso64_pagelist[vdso64_pages - 1] = virt_to_page(vdso_data); |
323 | vdso64_pagelist[vdso64_pages] = NULL; | 323 | vdso64_pagelist[vdso64_pages] = NULL; |
324 | #ifndef CONFIG_SMP | 324 | #ifndef CONFIG_SMP |
325 | BUG_ON(vdso_alloc_per_cpu(0, S390_lowcore)); | 325 | if (vdso_alloc_per_cpu(0, &S390_lowcore)) |
326 | BUG(); | ||
326 | #endif | 327 | #endif |
327 | vdso_init_cr5(); | 328 | vdso_init_cr5(); |
328 | #endif /* CONFIG_64BIT */ | 329 | #endif /* CONFIG_64BIT */ |
diff --git a/arch/s390/kernel/vdso32/gettimeofday.S b/arch/s390/kernel/vdso32/gettimeofday.S index c32f29c3d70c..ad8acfc949fb 100644 --- a/arch/s390/kernel/vdso32/gettimeofday.S +++ b/arch/s390/kernel/vdso32/gettimeofday.S | |||
@@ -13,10 +13,6 @@ | |||
13 | #include <asm/asm-offsets.h> | 13 | #include <asm/asm-offsets.h> |
14 | #include <asm/unistd.h> | 14 | #include <asm/unistd.h> |
15 | 15 | ||
16 | #include <asm/vdso.h> | ||
17 | #include <asm/asm-offsets.h> | ||
18 | #include <asm/unistd.h> | ||
19 | |||
20 | .text | 16 | .text |
21 | .align 4 | 17 | .align 4 |
22 | .globl __kernel_gettimeofday | 18 | .globl __kernel_gettimeofday |
diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c index a0775e1f08df..8300309698fa 100644 --- a/arch/s390/kvm/diag.c +++ b/arch/s390/kvm/diag.c | |||
@@ -47,7 +47,7 @@ static int __diag_ipl_functions(struct kvm_vcpu *vcpu) | |||
47 | vcpu->run->s390_reset_flags |= KVM_S390_RESET_IPL; | 47 | vcpu->run->s390_reset_flags |= KVM_S390_RESET_IPL; |
48 | vcpu->run->s390_reset_flags |= KVM_S390_RESET_CPU_INIT; | 48 | vcpu->run->s390_reset_flags |= KVM_S390_RESET_CPU_INIT; |
49 | vcpu->run->exit_reason = KVM_EXIT_S390_RESET; | 49 | vcpu->run->exit_reason = KVM_EXIT_S390_RESET; |
50 | VCPU_EVENT(vcpu, 3, "requesting userspace resets %lx", | 50 | VCPU_EVENT(vcpu, 3, "requesting userspace resets %llx", |
51 | vcpu->run->s390_reset_flags); | 51 | vcpu->run->s390_reset_flags); |
52 | return -EREMOTE; | 52 | return -EREMOTE; |
53 | } | 53 | } |
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index 2960702b4824..f4fe28a2521a 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c | |||
@@ -160,7 +160,7 @@ static void __do_deliver_interrupt(struct kvm_vcpu *vcpu, | |||
160 | break; | 160 | break; |
161 | 161 | ||
162 | case KVM_S390_INT_VIRTIO: | 162 | case KVM_S390_INT_VIRTIO: |
163 | VCPU_EVENT(vcpu, 4, "interrupt: virtio parm:%x,parm64:%lx", | 163 | VCPU_EVENT(vcpu, 4, "interrupt: virtio parm:%x,parm64:%llx", |
164 | inti->ext.ext_params, inti->ext.ext_params2); | 164 | inti->ext.ext_params, inti->ext.ext_params2); |
165 | vcpu->stat.deliver_virtio_interrupt++; | 165 | vcpu->stat.deliver_virtio_interrupt++; |
166 | rc = put_guest_u16(vcpu, __LC_EXT_INT_CODE, 0x2603); | 166 | rc = put_guest_u16(vcpu, __LC_EXT_INT_CODE, 0x2603); |
@@ -360,7 +360,7 @@ int kvm_s390_handle_wait(struct kvm_vcpu *vcpu) | |||
360 | vcpu->arch.ckc_timer.expires = jiffies + sltime; | 360 | vcpu->arch.ckc_timer.expires = jiffies + sltime; |
361 | 361 | ||
362 | add_timer(&vcpu->arch.ckc_timer); | 362 | add_timer(&vcpu->arch.ckc_timer); |
363 | VCPU_EVENT(vcpu, 5, "enabled wait timer:%lx jiffies", sltime); | 363 | VCPU_EVENT(vcpu, 5, "enabled wait timer:%llx jiffies", sltime); |
364 | no_timer: | 364 | no_timer: |
365 | spin_lock_bh(&vcpu->arch.local_int.float_int->lock); | 365 | spin_lock_bh(&vcpu->arch.local_int.float_int->lock); |
366 | spin_lock_bh(&vcpu->arch.local_int.lock); | 366 | spin_lock_bh(&vcpu->arch.local_int.lock); |
@@ -491,7 +491,7 @@ int kvm_s390_inject_vm(struct kvm *kvm, | |||
491 | 491 | ||
492 | switch (s390int->type) { | 492 | switch (s390int->type) { |
493 | case KVM_S390_INT_VIRTIO: | 493 | case KVM_S390_INT_VIRTIO: |
494 | VM_EVENT(kvm, 5, "inject: virtio parm:%x,parm64:%lx", | 494 | VM_EVENT(kvm, 5, "inject: virtio parm:%x,parm64:%llx", |
495 | s390int->parm, s390int->parm64); | 495 | s390int->parm, s390int->parm64); |
496 | inti->type = s390int->type; | 496 | inti->type = s390int->type; |
497 | inti->ext.ext_params = s390int->parm; | 497 | inti->ext.ext_params = s390int->parm; |
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index cce40ff2913b..3605df45dd41 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c | |||
@@ -118,7 +118,7 @@ static int handle_store_cpu_address(struct kvm_vcpu *vcpu) | |||
118 | goto out; | 118 | goto out; |
119 | } | 119 | } |
120 | 120 | ||
121 | VCPU_EVENT(vcpu, 5, "storing cpu address to %lx", useraddr); | 121 | VCPU_EVENT(vcpu, 5, "storing cpu address to %llx", useraddr); |
122 | out: | 122 | out: |
123 | return 0; | 123 | return 0; |
124 | } | 124 | } |
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 158b0d6d7046..f0258ca3b17e 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -183,7 +183,7 @@ int arch_add_memory(int nid, u64 start, u64 size) | |||
183 | rc = vmem_add_mapping(start, size); | 183 | rc = vmem_add_mapping(start, size); |
184 | if (rc) | 184 | if (rc) |
185 | return rc; | 185 | return rc; |
186 | rc = __add_pages(zone, PFN_DOWN(start), PFN_DOWN(size)); | 186 | rc = __add_pages(nid, zone, PFN_DOWN(start), PFN_DOWN(size)); |
187 | if (rc) | 187 | if (rc) |
188 | vmem_remove_mapping(start, size); | 188 | vmem_remove_mapping(start, size); |
189 | return rc; | 189 | return rc; |