diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-08-24 12:25:44 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-08-24 12:25:54 +0200 | 
| commit | 5f9ece02401116b29eb04396b99ea092acb75dd8 (patch) | |
| tree | e10386e2dc63c275646b4eb0bed857da7bf86c6a /arch/parisc/kernel/sys_parisc32.c | |
| parent | 9f51e24ee8b5a1595b6a5ac0c2be278a16488e75 (diff) | |
| parent | 422bef879e84104fee6dc68ded0e371dbeb5f88e (diff) | |
| download | olio-linux-3.10-5f9ece02401116b29eb04396b99ea092acb75dd8.tar.xz olio-linux-3.10-5f9ece02401116b29eb04396b99ea092acb75dd8.zip  | |
Merge commit 'v2.6.31-rc7' into x86/cleanups
Merge reason: we were on -rc1 before - go up to -rc7
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/parisc/kernel/sys_parisc32.c')
| -rw-r--r-- | arch/parisc/kernel/sys_parisc32.c | 62 | 
1 files changed, 0 insertions, 62 deletions
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c index 1adb40c8166..92a0acaa0d1 100644 --- a/arch/parisc/kernel/sys_parisc32.c +++ b/arch/parisc/kernel/sys_parisc32.c @@ -174,68 +174,6 @@ asmlinkage long sys32_sched_rr_get_interval(pid_t pid,  	return ret;  } -/*** copied from mips64 ***/ -/* - * Ooo, nasty.  We need here to frob 32-bit unsigned longs to - * 64-bit unsigned longs. - */ - -static inline int -get_fd_set32(unsigned long n, u32 *ufdset, unsigned long *fdset) -{ -	n = (n + 8*sizeof(u32) - 1) / (8*sizeof(u32)); -	if (ufdset) { -		unsigned long odd; - -		if (!access_ok(VERIFY_WRITE, ufdset, n*sizeof(u32))) -			return -EFAULT; - -		odd = n & 1UL; -		n &= ~1UL; -		while (n) { -			unsigned long h, l; -			__get_user(l, ufdset); -			__get_user(h, ufdset+1); -			ufdset += 2; -			*fdset++ = h << 32 | l; -			n -= 2; -		} -		if (odd) -			__get_user(*fdset, ufdset); -	} else { -		/* Tricky, must clear full unsigned long in the -		 * kernel fdset at the end, this makes sure that -		 * actually happens. -		 */ -		memset(fdset, 0, ((n + 1) & ~1)*sizeof(u32)); -	} -	return 0; -} - -static inline void -set_fd_set32(unsigned long n, u32 *ufdset, unsigned long *fdset) -{ -	unsigned long odd; -	n = (n + 8*sizeof(u32) - 1) / (8*sizeof(u32)); - -	if (!ufdset) -		return; - -	odd = n & 1UL; -	n &= ~1UL; -	while (n) { -		unsigned long h, l; -		l = *fdset++; -		h = l >> 32; -		__put_user(l, ufdset); -		__put_user(h, ufdset+1); -		ufdset += 2; -		n -= 2; -	} -	if (odd) -		__put_user(*fdset, ufdset); -} -  struct msgbuf32 {      int mtype;      char mtext[1];  |