From: mikpe@csd.uu.se
To: ak@suse.de
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][2.5.68] x86_64 getrusage breakage in ia32 emulation
Date: Thu, 24 Apr 2003 17:23:43 +0200 (MEST) [thread overview]
Message-ID: <200304241523.h3OFNhTr009419@harpo.it.uu.se> (raw)
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,
reply other threads:[~2003-04-24 15:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304241523.h3OFNhTr009419@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).