diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/Makefile | 12 | ||||
-rw-r--r-- | arch/s390/kernel/compat_linux.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/s390/kernel/entry64.S | 2 | ||||
-rw-r--r-- | arch/s390/kernel/head.S | 2 | ||||
-rw-r--r-- | arch/s390/kernel/head64.S | 2 | ||||
-rw-r--r-- | arch/s390/lib/spinlock.c | 12 | ||||
-rw-r--r-- | arch/s390/lib/uaccess.S | 2 | ||||
-rw-r--r-- | arch/s390/lib/uaccess64.S | 2 |
9 files changed, 15 insertions, 23 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile index 3cd8dd25c9d7..98db30481d97 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile | |||
@@ -19,6 +19,7 @@ CFLAGS += -m31 | |||
19 | AFLAGS += -m31 | 19 | AFLAGS += -m31 |
20 | UTS_MACHINE := s390 | 20 | UTS_MACHINE := s390 |
21 | STACK_SIZE := 8192 | 21 | STACK_SIZE := 8192 |
22 | CHECKFLAGS += -D__s390__ | ||
22 | endif | 23 | endif |
23 | 24 | ||
24 | ifdef CONFIG_ARCH_S390X | 25 | ifdef CONFIG_ARCH_S390X |
@@ -28,6 +29,7 @@ CFLAGS += -m64 | |||
28 | AFLAGS += -m64 | 29 | AFLAGS += -m64 |
29 | UTS_MACHINE := s390x | 30 | UTS_MACHINE := s390x |
30 | STACK_SIZE := 16384 | 31 | STACK_SIZE := 16384 |
32 | CHECKFLAGS += -D__s390__ -D__s390x__ | ||
31 | endif | 33 | endif |
32 | 34 | ||
33 | cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) | 35 | cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) |
@@ -100,16 +102,6 @@ image: vmlinux | |||
100 | archclean: | 102 | archclean: |
101 | $(Q)$(MAKE) $(clean)=$(boot) | 103 | $(Q)$(MAKE) $(clean)=$(boot) |
102 | 104 | ||
103 | prepare: include/asm-$(ARCH)/offsets.h | ||
104 | |||
105 | arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ | ||
106 | include/config/MARKER | ||
107 | |||
108 | include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s | ||
109 | $(call filechk,gen-asm-offsets) | ||
110 | |||
111 | CLEAN_FILES += include/asm-$(ARCH)/offsets.h | ||
112 | |||
113 | # Don't use tabs in echo arguments | 105 | # Don't use tabs in echo arguments |
114 | define archhelp | 106 | define archhelp |
115 | echo '* image - Kernel image for IPL ($(boot)/image)' | 107 | echo '* image - Kernel image for IPL ($(boot)/image)' |
diff --git a/arch/s390/kernel/compat_linux.c b/arch/s390/kernel/compat_linux.c index 18610cea03a2..ed877d0f27e6 100644 --- a/arch/s390/kernel/compat_linux.c +++ b/arch/s390/kernel/compat_linux.c | |||
@@ -678,7 +678,7 @@ asmlinkage long sys32_sendfile(int out_fd, int in_fd, compat_off_t *offset, size | |||
678 | ret = sys_sendfile(out_fd, in_fd, offset ? &of : NULL, count); | 678 | ret = sys_sendfile(out_fd, in_fd, offset ? &of : NULL, count); |
679 | set_fs(old_fs); | 679 | set_fs(old_fs); |
680 | 680 | ||
681 | if (!ret && offset && put_user(of, offset)) | 681 | if (offset && put_user(of, offset)) |
682 | return -EFAULT; | 682 | return -EFAULT; |
683 | 683 | ||
684 | return ret; | 684 | return ret; |
diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index cbe7d6a2d02c..58fc7fbcb40e 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/errno.h> | 18 | #include <asm/errno.h> |
19 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
20 | #include <asm/thread_info.h> | 20 | #include <asm/thread_info.h> |
21 | #include <asm/offsets.h> | 21 | #include <asm/asm-offsets.h> |
22 | #include <asm/unistd.h> | 22 | #include <asm/unistd.h> |
23 | #include <asm/page.h> | 23 | #include <asm/page.h> |
24 | 24 | ||
diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index fb77b72ab262..d0c9ffaa25db 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/errno.h> | 18 | #include <asm/errno.h> |
19 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
20 | #include <asm/thread_info.h> | 20 | #include <asm/thread_info.h> |
21 | #include <asm/offsets.h> | 21 | #include <asm/asm-offsets.h> |
22 | #include <asm/unistd.h> | 22 | #include <asm/unistd.h> |
23 | #include <asm/page.h> | 23 | #include <asm/page.h> |
24 | 24 | ||
diff --git a/arch/s390/kernel/head.S b/arch/s390/kernel/head.S index 2710e66fefba..55654b6e16dc 100644 --- a/arch/s390/kernel/head.S +++ b/arch/s390/kernel/head.S | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <linux/config.h> | 30 | #include <linux/config.h> |
31 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
32 | #include <asm/lowcore.h> | 32 | #include <asm/lowcore.h> |
33 | #include <asm/offsets.h> | 33 | #include <asm/asm-offsets.h> |
34 | #include <asm/thread_info.h> | 34 | #include <asm/thread_info.h> |
35 | #include <asm/page.h> | 35 | #include <asm/page.h> |
36 | 36 | ||
diff --git a/arch/s390/kernel/head64.S b/arch/s390/kernel/head64.S index 9a8263a153cb..c9ff0404c875 100644 --- a/arch/s390/kernel/head64.S +++ b/arch/s390/kernel/head64.S | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <linux/config.h> | 30 | #include <linux/config.h> |
31 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
32 | #include <asm/lowcore.h> | 32 | #include <asm/lowcore.h> |
33 | #include <asm/offsets.h> | 33 | #include <asm/asm-offsets.h> |
34 | #include <asm/thread_info.h> | 34 | #include <asm/thread_info.h> |
35 | #include <asm/page.h> | 35 | #include <asm/page.h> |
36 | 36 | ||
diff --git a/arch/s390/lib/spinlock.c b/arch/s390/lib/spinlock.c index 888b5596c195..2dc14e9c8327 100644 --- a/arch/s390/lib/spinlock.c +++ b/arch/s390/lib/spinlock.c | |||
@@ -36,7 +36,7 @@ _diag44(void) | |||
36 | } | 36 | } |
37 | 37 | ||
38 | void | 38 | void |
39 | _raw_spin_lock_wait(spinlock_t *lp, unsigned int pc) | 39 | _raw_spin_lock_wait(raw_spinlock_t *lp, unsigned int pc) |
40 | { | 40 | { |
41 | int count = spin_retry; | 41 | int count = spin_retry; |
42 | 42 | ||
@@ -53,7 +53,7 @@ _raw_spin_lock_wait(spinlock_t *lp, unsigned int pc) | |||
53 | EXPORT_SYMBOL(_raw_spin_lock_wait); | 53 | EXPORT_SYMBOL(_raw_spin_lock_wait); |
54 | 54 | ||
55 | int | 55 | int |
56 | _raw_spin_trylock_retry(spinlock_t *lp, unsigned int pc) | 56 | _raw_spin_trylock_retry(raw_spinlock_t *lp, unsigned int pc) |
57 | { | 57 | { |
58 | int count = spin_retry; | 58 | int count = spin_retry; |
59 | 59 | ||
@@ -67,7 +67,7 @@ _raw_spin_trylock_retry(spinlock_t *lp, unsigned int pc) | |||
67 | EXPORT_SYMBOL(_raw_spin_trylock_retry); | 67 | EXPORT_SYMBOL(_raw_spin_trylock_retry); |
68 | 68 | ||
69 | void | 69 | void |
70 | _raw_read_lock_wait(rwlock_t *rw) | 70 | _raw_read_lock_wait(raw_rwlock_t *rw) |
71 | { | 71 | { |
72 | unsigned int old; | 72 | unsigned int old; |
73 | int count = spin_retry; | 73 | int count = spin_retry; |
@@ -86,7 +86,7 @@ _raw_read_lock_wait(rwlock_t *rw) | |||
86 | EXPORT_SYMBOL(_raw_read_lock_wait); | 86 | EXPORT_SYMBOL(_raw_read_lock_wait); |
87 | 87 | ||
88 | int | 88 | int |
89 | _raw_read_trylock_retry(rwlock_t *rw) | 89 | _raw_read_trylock_retry(raw_rwlock_t *rw) |
90 | { | 90 | { |
91 | unsigned int old; | 91 | unsigned int old; |
92 | int count = spin_retry; | 92 | int count = spin_retry; |
@@ -102,7 +102,7 @@ _raw_read_trylock_retry(rwlock_t *rw) | |||
102 | EXPORT_SYMBOL(_raw_read_trylock_retry); | 102 | EXPORT_SYMBOL(_raw_read_trylock_retry); |
103 | 103 | ||
104 | void | 104 | void |
105 | _raw_write_lock_wait(rwlock_t *rw) | 105 | _raw_write_lock_wait(raw_rwlock_t *rw) |
106 | { | 106 | { |
107 | int count = spin_retry; | 107 | int count = spin_retry; |
108 | 108 | ||
@@ -119,7 +119,7 @@ _raw_write_lock_wait(rwlock_t *rw) | |||
119 | EXPORT_SYMBOL(_raw_write_lock_wait); | 119 | EXPORT_SYMBOL(_raw_write_lock_wait); |
120 | 120 | ||
121 | int | 121 | int |
122 | _raw_write_trylock_retry(rwlock_t *rw) | 122 | _raw_write_trylock_retry(raw_rwlock_t *rw) |
123 | { | 123 | { |
124 | int count = spin_retry; | 124 | int count = spin_retry; |
125 | 125 | ||
diff --git a/arch/s390/lib/uaccess.S b/arch/s390/lib/uaccess.S index e8029ef42ef2..88fc94fe6488 100644 --- a/arch/s390/lib/uaccess.S +++ b/arch/s390/lib/uaccess.S | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
13 | #include <asm/lowcore.h> | 13 | #include <asm/lowcore.h> |
14 | #include <asm/offsets.h> | 14 | #include <asm/asm-offsets.h> |
15 | 15 | ||
16 | .text | 16 | .text |
17 | .align 4 | 17 | .align 4 |
diff --git a/arch/s390/lib/uaccess64.S b/arch/s390/lib/uaccess64.S index 0ca56972f4f0..50219786fc7a 100644 --- a/arch/s390/lib/uaccess64.S +++ b/arch/s390/lib/uaccess64.S | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
13 | #include <asm/lowcore.h> | 13 | #include <asm/lowcore.h> |
14 | #include <asm/offsets.h> | 14 | #include <asm/asm-offsets.h> |
15 | 15 | ||
16 | .text | 16 | .text |
17 | .align 4 | 17 | .align 4 |