summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-19 23:13:04 +1000
committerPaul Mackerras <paulus@samba.org>2005-10-19 23:13:04 +1000
commit9b7cf8b49dc4464b222afc9fa32628bb9a2e70a3 (patch)
tree3a0c28335d1cb3bcebba8774dcb2efa43c7c3a45
parent0b879a31447acd9ebe8b3c5231f72ccebeefad3a (diff)
powerpc: Eliminate a compile warning in signal_32.c
The second argument of get_sigset_t needed to have the const keyword. Signed-off-by: Paul Mackerras <paulus@samba.org>
-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)
return copy_to_user(uset, &cset, sizeof(*uset));
}
-static inline int get_sigset_t(sigset_t *set, compat_sigset_t __user *uset)
+static inline int get_sigset_t(sigset_t *set,
+ const compat_sigset_t __user *uset)
{
compat_sigset_t s32;
@@ -187,7 +188,7 @@ static inline int put_sigset_t(sigset_t __user *uset, sigset_t *set)
return copy_to_user(uset, set, sizeof(*uset));
}
-static inline int get_sigset_t(sigset_t *set, sigset_t __user *uset)
+static inline int get_sigset_t(sigset_t *set, const sigset_t __user *uset)
{
return copy_from_user(set, uset, sizeof(*uset));
}