* Re: sys_ioctl export
[not found] ` <20040618143718.GA21206@infradead.org>
@ 2004-06-18 14:44 ` Jesse Barnes
0 siblings, 0 replies; only message in thread
From: Jesse Barnes @ 2004-06-18 14:44 UTC (permalink / raw)
To: Christoph Hellwig
Cc: davidm, Mark Haverkamp, Grant Grundler, Andi Kleen, linux-ia64,
linux-kernel, akpm
[-- Attachment #1: Type: text/plain, Size: 463 bytes --]
On Friday, June 18, 2004 10:37 am, Christoph Hellwig wrote:
> > > 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?
>
> Looks good. Maybe a small comment?
Small patch to export sys_ioctl if CONFIG_COMPAT is set. This allows
platforms to implement 32 bit compatibility ioctl handlers in modules.
Submitted-by: Jesse Barnes <jbarnes@sgi.com>
[-- Attachment #2: sys-ioctl-export-2.patch --]
[-- Type: text/x-diff, Size: 2051 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:42:23 -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,11 @@
out:
return error;
}
+
+/*
+ * Platforms implementing 32 bit compatibility ioctl handlers in
+ * modules need this exported
+ */
+#ifdef CONFIG_COMPAT
+EXPORT_SYMBOL(sys_ioctl);
+#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-18 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1087494747.28235.28.camel@markh1.pdx.osdl.net>
[not found] ` <200406181032.17967.jbarnes@engr.sgi.com>
[not found] ` <20040618143718.GA21206@infradead.org>
2004-06-18 14:44 ` sys_ioctl export Jesse Barnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®