Skip to content

Commit ce39596

Browse files
author
Al Viro
committed
constify copy_siginfo_to_user{,32}()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 078d8e6 commit ce39596

14 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎arch/arm64/kernel/signal32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static inline int get_sigset_t(sigset_t *set,
150150
return 0;
151151
}
152152

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)
154154
{
155155
int err;
156156

‎arch/ia64/kernel/signal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ restore_sigcontext (struct sigcontext __user *sc, struct sigscratch *scr)
105105
}
106106

107107
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)
109109
{
110110
if (!access_ok(VERIFY_WRITE, to, sizeof(siginfo_t)))
111111
return -EFAULT;

‎arch/mips/kernel/signal32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *,
314314
return ret;
315315
}
316316

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)
318318
{
319319
int err;
320320

‎arch/parisc/kernel/signal32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from)
319319
}
320320

321321
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)
323323
{
324324
compat_uptr_t addr;
325325
compat_int_t val;

‎arch/parisc/kernel/signal32.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct compat_ucontext {
3434

3535
/* ELF32 signal handling */
3636

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);
3838
int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from);
3939

4040
/* In a deft move of uber-hackery, we decide to carry the top half of all

‎arch/powerpc/kernel/signal_32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ static long restore_tm_user_regs(struct pt_regs *regs,
891891
#endif
892892

893893
#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)
895895
{
896896
int err;
897897

‎arch/s390/kernel/compat_signal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct
4949
__u32 gprs_high[NUM_GPRS];
5050
} rt_sigframe32;
5151

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)
5353
{
5454
int err;
5555

‎arch/sparc/kernel/signal32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct rt_signal_frame32 {
6868
/* __siginfo_rwin_t * */u32 rwin_save;
6969
} __attribute__((aligned(8)));
7070

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)
7272
{
7373
int err;
7474

‎arch/tile/kernel/compat_signal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct compat_rt_sigframe {
4949
struct compat_ucontext uc;
5050
};
5151

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)
5353
{
5454
int err;
5555

‎arch/x86/ia32/ia32_signal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <asm/sys_ia32.h>
3535
#include <asm/smap.h>
3636

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)
3838
{
3939
int err = 0;
4040
bool ia32 = test_thread_flag(TIF_IA32);

0 commit comments

Comments
 (0)