linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][2.5.68] x86_64 getrusage breakage in ia32 emulation
@ 2003-04-24 15:23 mikpe
  0 siblings, 0 replies; only message in thread
From: mikpe @ 2003-04-24 15:23 UTC (permalink / raw)
  To: ak; +Cc: linux-kernel

2.5.68 with IA32 emulation enabled fails in the linking step.
The obsolete sys32_getrusage() wasn't deleted, but it references
put_rusage() which _was_ deleted, resulting in a linkage error.
Simply removing sys32_getrusage() fixes the problem.

/Mikael

--- linux-2.5.68/arch/x86_64/ia32/sys_ia32.c.~1~	2003-04-20 13:08:16.000000000 +0200
+++ linux-2.5.68/arch/x86_64/ia32/sys_ia32.c	2003-04-24 15:07:03.000000000 +0200
@@ -861,24 +861,6 @@
 	return compat_sys_wait4(pid, stat_addr, options, NULL);
 }
 
-
-extern asmlinkage long
-sys_getrusage(int who, struct rusage *ru);
-
-asmlinkage long
-sys32_getrusage(int who, struct rusage32 *ru)
-{
-	struct rusage r;
-	int ret;
-	mm_segment_t old_fs = get_fs();
-		
-	set_fs (KERNEL_DS);
-	ret = sys_getrusage(who, &r);
-	set_fs (old_fs);
-	if (put_rusage (ru, &r)) return -EFAULT;
-	return ret;
-}
-
 int sys32_ni_syscall(int call)
 { 
 	printk(KERN_INFO "IA32 syscall %d from %s not implemented\n", call,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-24 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 15:23 [PATCH][2.5.68] x86_64 getrusage breakage in ia32 emulation mikpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).