2004-10-12 00:17:11

by Blaisorblade

[permalink] [raw]
Subject: [patch 6/6] uml: export more Symbols


Adds a lot more EXPORT_SYMBOLS calls.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
---

linux-2.6.9-current-paolo/arch/um/kernel/irq.c | 2 ++
linux-2.6.9-current-paolo/arch/um/kernel/ksyms.c | 1 +
linux-2.6.9-current-paolo/arch/um/kernel/physmem.c | 5 +++++
3 files changed, 8 insertions(+)

diff -puN arch/um/kernel/irq.c~uml-export-Symbols arch/um/kernel/irq.c
--- linux-2.6.9-current/arch/um/kernel/irq.c~uml-export-Symbols 2004-10-12 01:22:08.000000000 +0200
+++ linux-2.6.9-current-paolo/arch/um/kernel/irq.c 2004-10-12 01:22:08.000000000 +0200
@@ -441,6 +441,8 @@ int um_request_irq(unsigned int irq, int
err = activate_fd(irq, fd, type, dev_id);
return(err);
}
+EXPORT_SYMBOL(um_request_irq);
+EXPORT_SYMBOL(reactivate_fd);

/* this was setup_x86_irq but it seems pretty generic */
int setup_irq(unsigned int irq, struct irqaction * new)
diff -puN arch/um/kernel/ksyms.c~uml-export-Symbols arch/um/kernel/ksyms.c
--- linux-2.6.9-current/arch/um/kernel/ksyms.c~uml-export-Symbols 2004-10-12 01:22:08.000000000 +0200
+++ linux-2.6.9-current-paolo/arch/um/kernel/ksyms.c 2004-10-12 01:22:08.000000000 +0200
@@ -60,6 +60,7 @@ EXPORT_SYMBOL(strncpy_from_user_skas);
EXPORT_SYMBOL(copy_to_user_skas);
EXPORT_SYMBOL(copy_from_user_skas);
#endif
+EXPORT_SYMBOL(uml_strdup);

EXPORT_SYMBOL(os_stat_fd);
EXPORT_SYMBOL(os_stat_file);
diff -puN arch/um/kernel/physmem.c~uml-export-Symbols arch/um/kernel/physmem.c
--- linux-2.6.9-current/arch/um/kernel/physmem.c~uml-export-Symbols 2004-10-12 01:22:08.000000000 +0200
+++ linux-2.6.9-current-paolo/arch/um/kernel/physmem.c 2004-10-12 01:22:08.000000000 +0200
@@ -8,6 +8,7 @@
#include "linux/slab.h"
#include "linux/vmalloc.h"
#include "linux/bootmem.h"
+#include "linux/module.h"
#include "asm/types.h"
#include "asm/pgtable.h"
#include "kern_util.h"
@@ -220,6 +221,10 @@ void physmem_forget_descriptor(int fd)
kfree(desc);
}

+EXPORT_SYMBOL(physmem_forget_descriptor);
+EXPORT_SYMBOL(physmem_remove_mapping);
+EXPORT_SYMBOL(physmem_subst_mapping);
+
void arch_free_page(struct page *page, int order)
{
void *virt;
_