aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-03-04 14:36:51 -0500
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:30:53 -0400
commit77c728c2240a1eb45f7d355f5d87ecc319cd55ce (patch)
tree5e8abf2eceba4beaaca4aefa875be96aecb649b4 /arch/mips
parent5eaf7a21be3f7f81573cf26541b8f9cc786fb67d (diff)
Gcc 4.0 fixes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/signal32.c10
-rw-r--r--arch/mips/mm/c-sb1.c2
2 files changed, 7 insertions, 5 deletions
diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c
index 18c028ba9efa..663fa547ee18 100644
--- a/arch/mips/kernel/signal32.c
+++ b/arch/mips/kernel/signal32.c
@@ -261,11 +261,12 @@ asmlinkage int sys32_sigaction(int sig, const struct sigaction32 *act,
261 261
262 if (act) { 262 if (act) {
263 old_sigset_t mask; 263 old_sigset_t mask;
264 s32 handler;
264 265
265 if (!access_ok(VERIFY_READ, act, sizeof(*act))) 266 if (!access_ok(VERIFY_READ, act, sizeof(*act)))
266 return -EFAULT; 267 return -EFAULT;
267 err |= __get_user((u32)(u64)new_ka.sa.sa_handler, 268 err |= __get_user(handler, &act->sa_handler);
268 &act->sa_handler); 269 new_ka.sa.sa_handler = (void*)(s64)handler;
269 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags); 270 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags);
270 err |= __get_user(mask, &act->sa_mask.sig[0]); 271 err |= __get_user(mask, &act->sa_mask.sig[0]);
271 if (err) 272 if (err)
@@ -826,12 +827,13 @@ asmlinkage int sys32_rt_sigaction(int sig, const struct sigaction32 *act,
826 goto out; 827 goto out;
827 828
828 if (act) { 829 if (act) {
830 s32 handler;
829 int err = 0; 831 int err = 0;
830 832
831 if (!access_ok(VERIFY_READ, act, sizeof(*act))) 833 if (!access_ok(VERIFY_READ, act, sizeof(*act)))
832 return -EFAULT; 834 return -EFAULT;
833 err |= __get_user((u32)(u64)new_sa.sa.sa_handler, 835 err |= __get_user(handler, &act->sa_handler);
834 &act->sa_handler); 836 new_sa.sa.sa_handler = (void*)(s64)handler;
835 err |= __get_user(new_sa.sa.sa_flags, &act->sa_flags); 837 err |= __get_user(new_sa.sa.sa_flags, &act->sa_flags);
836 err |= get_sigset(&new_sa.sa.sa_mask, &act->sa_mask); 838 err |= get_sigset(&new_sa.sa.sa_mask, &act->sa_mask);
837 if (err) 839 if (err)
diff --git a/arch/mips/mm/c-sb1.c b/arch/mips/mm/c-sb1.c
index 502f68c664b2..e65b1bb576fd 100644
--- a/arch/mips/mm/c-sb1.c
+++ b/arch/mips/mm/c-sb1.c
@@ -235,7 +235,7 @@ static inline void __sb1_flush_icache_range(unsigned long start,
235/* 235/*
236 * Invalidate all caches on this CPU 236 * Invalidate all caches on this CPU
237 */ 237 */
238static void local_sb1___flush_cache_all(void) 238static void __attribute_used__ local_sb1___flush_cache_all(void)
239{ 239{
240 __sb1_writeback_inv_dcache_all(); 240 __sb1_writeback_inv_dcache_all();
241 __sb1_flush_icache_all(); 241 __sb1_flush_icache_all();