Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

constify copy_siginfo_to_user{,32}()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro ce395960 078d8e62

+14 -14
+1 -1
arch/arm64/kernel/signal32.c
··· 150 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 155 int err; 156 156
+1 -1
arch/ia64/kernel/signal.c
··· 105 105 } 106 106 107 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 110 if (!access_ok(VERIFY_WRITE, to, sizeof(siginfo_t))) 111 111 return -EFAULT;
+1 -1
arch/mips/kernel/signal32.c
··· 314 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 319 int err; 320 320
+1 -1
arch/parisc/kernel/signal32.c
··· 319 319 } 320 320 321 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 324 compat_uptr_t addr; 325 325 compat_int_t val;
+1 -1
arch/parisc/kernel/signal32.h
··· 34 34 35 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 38 int copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from); 39 39 40 40 /* In a deft move of uber-hackery, we decide to carry the top half of all
+1 -1
arch/powerpc/kernel/signal_32.c
··· 891 891 #endif 892 892 893 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 896 int err; 897 897
+1 -1
arch/s390/kernel/compat_signal.c
··· 49 49 __u32 gprs_high[NUM_GPRS]; 50 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 54 int err; 55 55
+1 -1
arch/sparc/kernel/signal32.c
··· 68 68 /* __siginfo_rwin_t * */u32 rwin_save; 69 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 73 int err; 74 74
+1 -1
arch/tile/kernel/compat_signal.c
··· 49 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 54 int err; 55 55
+1 -1
arch/x86/ia32/ia32_signal.c
··· 34 34 #include <asm/sys_ia32.h> 35 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 39 int err = 0; 40 40 bool ia32 = test_thread_flag(TIF_IA32);
+1 -1
fs/binfmt_elf.c
··· 1374 1374 } 1375 1375 1376 1376 static void fill_siginfo_note(struct memelfnote *note, user_siginfo_t *csigdata, 1377 - siginfo_t *siginfo) 1377 + const siginfo_t *siginfo) 1378 1378 { 1379 1379 mm_segment_t old_fs = get_fs(); 1380 1380 set_fs(KERNEL_DS);
+1 -1
include/asm-generic/siginfo.h
··· 32 32 33 33 #endif 34 34 35 - extern int copy_siginfo_to_user(struct siginfo __user *to, struct siginfo *from); 35 + extern int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from); 36 36 37 37 #endif
+1 -1
include/linux/compat.h
··· 362 362 long compat_put_bitmap(compat_ulong_t __user *umask, unsigned long *mask, 363 363 unsigned long bitmap_size); 364 364 int copy_siginfo_from_user32(siginfo_t *to, struct compat_siginfo __user *from); 365 - int copy_siginfo_to_user32(struct compat_siginfo __user *to, siginfo_t *from); 365 + int copy_siginfo_to_user32(struct compat_siginfo __user *to, const siginfo_t *from); 366 366 int get_compat_sigevent(struct sigevent *event, 367 367 const struct compat_sigevent __user *u_event); 368 368 long compat_sys_rt_tgsigqueueinfo(compat_pid_t tgid, compat_pid_t pid, int sig,
+1 -1
kernel/signal.c
··· 2723 2723 2724 2724 #ifndef HAVE_ARCH_COPY_SIGINFO_TO_USER 2725 2725 2726 - int copy_siginfo_to_user(siginfo_t __user *to, siginfo_t *from) 2726 + int copy_siginfo_to_user(siginfo_t __user *to, const siginfo_t *from) 2727 2727 { 2728 2728 int err; 2729 2729