aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/signal_32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c
index e7e7aac11f89..1c4eac4c808f 100644
--- a/arch/powerpc/kernel/signal_32.c
+++ b/arch/powerpc/kernel/signal_32.c
@@ -105,7 +105,8 @@ static inline int put_sigset_t(compat_sigset_t __user *uset, sigset_t *set)
105 return copy_to_user(uset, &cset, sizeof(*uset)); 105 return copy_to_user(uset, &cset, sizeof(*uset));
106} 106}
107 107
108static inline int get_sigset_t(sigset_t *set, compat_sigset_t __user *uset) 108static inline int get_sigset_t(sigset_t *set,
109 const compat_sigset_t __user *uset)
109{ 110{
110 compat_sigset_t s32; 111 compat_sigset_t s32;
111 112
@@ -187,7 +188,7 @@ static inline int put_sigset_t(sigset_t __user *uset, sigset_t *set)
187 return copy_to_user(uset, set, sizeof(*uset)); 188 return copy_to_user(uset, set, sizeof(*uset));
188} 189}
189 190
190static inline int get_sigset_t(sigset_t *set, sigset_t __user *uset) 191static inline int get_sigset_t(sigset_t *set, const sigset_t __user *uset)
191{ 192{
192 return copy_from_user(set, uset, sizeof(*uset)); 193 return copy_from_user(set, uset, sizeof(*uset));
193} 194}