diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kernel/signal32.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/signal32.c | 2 | ||||
-rw-r--r-- | arch/parisc/kernel/signal32.c | 2 | ||||
-rw-r--r-- | arch/parisc/kernel/signal32.h | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/signal_32.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/compat_signal.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/signal32.c | 2 | ||||
-rw-r--r-- | arch/tile/kernel/compat_signal.c | 2 | ||||
-rw-r--r-- | arch/x86/ia32/ia32_signal.c | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm64/kernel/signal32.c b/arch/arm64/kernel/signal32.c index e393174fe859..07da8c0fde2e 100644 --- a/arch/arm64/kernel/signal32.c +++ b/arch/arm64/kernel/signal32.c | |||
@@ -150,7 +150,7 @@ static inline int get_sigset_t(sigset_t *set, | |||
150 | return 0; | 150 | return 0; |
151 | } | 151 | } |
152 | 152 | ||
153 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) | 153 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) |
154 | { | 154 | { |
155 | int err; | 155 | int err; |
156 | 156 | ||
diff --git a/arch/ia64/kernel/signal.c b/arch/ia64/kernel/signal.c index 3637e03d2282..33cab9a8adff 100644 --- a/arch/ia64/kernel/signal.c +++ b/arch/ia64/kernel/signal.c | |||
@@ -105,7 +105,7 @@ restore_sigcontext (struct sigcontext __user *sc, struct sigscratch *scr) | |||
105 | } | 105 | } |
106 | 106 | ||
107 | int | 107 | int |
108 | copy_siginfo_to_user (siginfo_t __user *to, siginfo_t *from) | 108 | copy_siginfo_to_user (siginfo_t __user *to, const siginfo_t *from) |
109 | { | 109 | { |
110 | if (!access_ok(VERIFY_WRITE, to, sizeof(siginfo_t))) | 110 | if (!access_ok(VERIFY_WRITE, to, sizeof(siginfo_t))) |
111 | return -EFAULT; | 111 | return -EFAULT; |
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c index 57de8b751627..1905a419aa46 100644 --- a/arch/mips/kernel/signal32.c +++ b/arch/mips/kernel/signal32.c | |||
@@ -314,7 +314,7 @@ SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *, | |||
314 | return ret; | 314 | return ret; |
315 | } | 315 | } |
316 | 316 | ||
317 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) | 317 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) |
318 | { | 318 | { |
319 | int err; | 319 | int err; |
320 | 320 | ||
diff --git a/arch/parisc/kernel/signal32.c b/arch/parisc/kernel/signal32.c index 6c6a271a6140..984abbee71ca 100644 --- a/arch/parisc/kernel/signal32.c +++ b/arch/parisc/kernel/signal32.c | |||
@@ -319,7 +319,7 @@ copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from) | |||
319 | } | 319 | } |
320 | 320 | ||
321 | int | 321 | int |
322 | copy_siginfo_to_user32 (compat_siginfo_t __user *to, siginfo_t *from) | 322 | copy_siginfo_to_user32 (compat_siginfo_t __user *to, const siginfo_t *from) |
323 | { | 323 | { |
324 | compat_uptr_t addr; | 324 | compat_uptr_t addr; |
325 | compat_int_t val; | 325 | compat_int_t val; |
diff --git a/arch/parisc/kernel/signal32.h b/arch/parisc/kernel/signal32.h index 72ab41a51f32..af51d4ccee42 100644 --- a/arch/parisc/kernel/signal32.h +++ b/arch/parisc/kernel/signal32.h | |||
@@ -34,7 +34,7 @@ struct compat_ucontext { | |||
34 | 34 | ||
35 | /* ELF32 signal handling */ | 35 | /* ELF32 signal handling */ |
36 | 36 | ||
37 | int copy_siginfo_to_user32 (compat_siginfo_t __user *to, siginfo_t *from); | 37 | int copy_siginfo_to_user32 (compat_siginfo_t __user *to, const siginfo_t *from); |
38 | int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from); | 38 | int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from); |
39 | 39 | ||
40 | /* In a deft move of uber-hackery, we decide to carry the top half of all | 40 | /* In a deft move of uber-hackery, we decide to carry the top half of all |
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c index bebdf1a1a540..149cd583d061 100644 --- a/arch/powerpc/kernel/signal_32.c +++ b/arch/powerpc/kernel/signal_32.c | |||
@@ -891,7 +891,7 @@ static long restore_tm_user_regs(struct pt_regs *regs, | |||
891 | #endif | 891 | #endif |
892 | 892 | ||
893 | #ifdef CONFIG_PPC64 | 893 | #ifdef CONFIG_PPC64 |
894 | int copy_siginfo_to_user32(struct compat_siginfo __user *d, siginfo_t *s) | 894 | int copy_siginfo_to_user32(struct compat_siginfo __user *d, const siginfo_t *s) |
895 | { | 895 | { |
896 | int err; | 896 | int err; |
897 | 897 | ||
diff --git a/arch/s390/kernel/compat_signal.c b/arch/s390/kernel/compat_signal.c index 1389b637dae5..44b25269a970 100644 --- a/arch/s390/kernel/compat_signal.c +++ b/arch/s390/kernel/compat_signal.c | |||
@@ -49,7 +49,7 @@ typedef struct | |||
49 | __u32 gprs_high[NUM_GPRS]; | 49 | __u32 gprs_high[NUM_GPRS]; |
50 | } rt_sigframe32; | 50 | } rt_sigframe32; |
51 | 51 | ||
52 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) | 52 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) |
53 | { | 53 | { |
54 | int err; | 54 | int err; |
55 | 55 | ||
diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c index b524f91dd0e5..ee789d2ef05d 100644 --- a/arch/sparc/kernel/signal32.c +++ b/arch/sparc/kernel/signal32.c | |||
@@ -68,7 +68,7 @@ struct rt_signal_frame32 { | |||
68 | /* __siginfo_rwin_t * */u32 rwin_save; | 68 | /* __siginfo_rwin_t * */u32 rwin_save; |
69 | } __attribute__((aligned(8))); | 69 | } __attribute__((aligned(8))); |
70 | 70 | ||
71 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) | 71 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) |
72 | { | 72 | { |
73 | int err; | 73 | int err; |
74 | 74 | ||
diff --git a/arch/tile/kernel/compat_signal.c b/arch/tile/kernel/compat_signal.c index 85e00b2f39bf..19c04b5ce408 100644 --- a/arch/tile/kernel/compat_signal.c +++ b/arch/tile/kernel/compat_signal.c | |||
@@ -49,7 +49,7 @@ struct compat_rt_sigframe { | |||
49 | struct compat_ucontext uc; | 49 | struct compat_ucontext uc; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | int copy_siginfo_to_user32(struct compat_siginfo __user *to, siginfo_t *from) | 52 | int copy_siginfo_to_user32(struct compat_siginfo __user *to, const siginfo_t *from) |
53 | { | 53 | { |
54 | int err; | 54 | int err; |
55 | 55 | ||
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index 665a730307f2..220675795e08 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/sys_ia32.h> | 34 | #include <asm/sys_ia32.h> |
35 | #include <asm/smap.h> | 35 | #include <asm/smap.h> |
36 | 36 | ||
37 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from) | 37 | int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) |
38 | { | 38 | { |
39 | int err = 0; | 39 | int err = 0; |
40 | bool ia32 = test_thread_flag(TIF_IA32); | 40 | bool ia32 = test_thread_flag(TIF_IA32); |