From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: sys_ioctl export
Date: Fri, 18 Jun 2004 14:32:17 +0000 [thread overview]
Message-ID: <200406181032.17967.jbarnes@engr.sgi.com> (raw)
In-Reply-To: <1087494747.28235.28.camel@markh1.pdx.osdl.net>
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
On Friday, June 18, 2004 2:54 am, Christoph Hellwig wrote:
> On Thu, Jun 17, 2004 at 02:25:16PM -0700, David Mosberger wrote:
> > >>>>> On Thu, 17 Jun 2004 12:36:54 -0700, Mark Haverkamp <markh@osdl.org>
> > >>>>> said:
> >
> > Mark> Wouldn't there be some reluctance to export a symbol to
> > Mark> everyone when it is only used for a special purpose?
> >
> > It seems rather silly to try to limit the exporting of a symbol that's
> > exported for all 64-bit platforms. But I don't really care. If you
> > want to submit a tested patch to add the symbol to ia64_ksyms.c, I can
> > certainly live with that.
>
> Just put the export into common code and guard it by CONFIG_COMPAT, matches
> exactly the intended users.
Like this totally untested and uncompiled patch?
Jesse
[-- Attachment #2: sys-ioctl-export.patch --]
[-- Type: text/x-diff, Size: 1944 bytes --]
===== arch/ppc64/kernel/ppc_ksyms.c 1.40 vs edited =====
--- 1.40/arch/ppc64/kernel/ppc_ksyms.c 2004-04-12 13:54:03 -04:00
+++ edited/arch/ppc64/kernel/ppc_ksyms.c 2004-06-18 10:28:45 -04:00
@@ -50,7 +50,6 @@
int abs(int);
EXPORT_SYMBOL(do_signal);
-EXPORT_SYMBOL(sys_ioctl);
EXPORT_SYMBOL(isa_io_base);
EXPORT_SYMBOL(pci_io_base);
===== arch/s390/kernel/s390_ksyms.c 1.23 vs edited =====
--- 1.23/arch/s390/kernel/s390_ksyms.c 2004-06-12 23:52:29 -04:00
+++ edited/arch/s390/kernel/s390_ksyms.c 2004-06-18 10:28:58 -04:00
@@ -76,4 +76,3 @@
EXPORT_SYMBOL_NOVERS(do_call_softirq);
EXPORT_SYMBOL(sys_wait4);
EXPORT_SYMBOL(cpcmd);
-EXPORT_SYMBOL(sys_ioctl);
===== arch/sparc64/kernel/sparc64_ksyms.c 1.69 vs edited =====
--- 1.69/arch/sparc64/kernel/sparc64_ksyms.c 2004-06-09 01:29:44 -04:00
+++ edited/arch/sparc64/kernel/sparc64_ksyms.c 2004-06-18 10:29:12 -04:00
@@ -327,7 +327,6 @@
EXPORT_SYMBOL(sys_getgid);
EXPORT_SYMBOL(svr4_getcontext);
EXPORT_SYMBOL(svr4_setcontext);
-EXPORT_SYMBOL(sys_ioctl);
EXPORT_SYMBOL(compat_sys_ioctl);
EXPORT_SYMBOL(sparc32_open);
EXPORT_SYMBOL(sys_close);
===== arch/x86_64/kernel/x8664_ksyms.c 1.32 vs edited =====
--- 1.32/arch/x86_64/kernel/x8664_ksyms.c 2004-05-17 17:12:13 -04:00
+++ edited/arch/x86_64/kernel/x8664_ksyms.c 2004-06-18 10:29:26 -04:00
@@ -218,4 +218,3 @@
EXPORT_SYMBOL_GPL(flush_tlb_all);
#endif
-EXPORT_SYMBOL(sys_ioctl);
===== fs/ioctl.c 1.12 vs edited =====
--- 1.12/fs/ioctl.c 2004-05-29 14:22:13 -04:00
+++ edited/fs/ioctl.c 2004-06-18 10:30:30 -04:00
@@ -4,11 +4,13 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/
+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/smp_lock.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/security.h>
+#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/ioctls.h>
@@ -133,3 +135,7 @@
out:
return error;
}
+
+#ifdef CONFIG_COMPAT
+EXPORT_SYMBOL(sys_ioctl);
+#endif
next prev parent reply other threads:[~2004-06-18 14:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-17 17:52 sys_ioctl export Mark Haverkamp
2004-06-17 18:20 ` Grant Grundler
2004-06-17 18:30 ` David Mosberger
2004-06-17 18:31 ` Mark Haverkamp
2004-06-17 18:42 ` Andi Kleen
2004-06-17 18:50 ` Grant Grundler
2004-06-17 18:50 ` David Mosberger
2004-06-17 18:54 ` Andi Kleen
2004-06-17 19:27 ` Grant Grundler
2004-06-17 19:36 ` Mark Haverkamp
2004-06-17 21:25 ` David Mosberger
2004-06-18 6:54 ` Christoph Hellwig
2004-06-18 14:32 ` Jesse Barnes [this message]
2004-06-18 14:37 ` Christoph Hellwig
2004-06-18 14:44 ` Jesse Barnes
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=200406181032.17967.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=linux-ia64@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