Re: [patch 1/1] ia64: export copy_page() to modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 13 Nov 2007 10:20:49 -0500 Kyle McMartin <kyle@xxxxxxxxxxx> wrote:

> On Tue, Nov 13, 2007 at 01:22:51AM -0800, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> > To do this we need to move the copy_page() functions out of lib.a and into
> > built-in.a, and create a silly little C file to add the EXPORT_SYMBOL().
> > 
> 
> The usual thing to do for an export for an assembly file is to put it
> into $arch_ksyms.c
> 

Yes.  I was a bit worried what would happen if CONFIG_ITANIUM=n and
CONFIG_MCKINLEY=n, but I guess that isn't a valid combination.



diff -puN arch/ia64/kernel/ia64_ksyms.c~ia64-export-copy_page-to-modules-fix arch/ia64/kernel/ia64_ksyms.c
--- a/arch/ia64/kernel/ia64_ksyms.c~ia64-export-copy_page-to-modules-fix
+++ a/arch/ia64/kernel/ia64_ksyms.c
@@ -63,6 +63,9 @@ EXPORT_SYMBOL(__udivdi3);
 EXPORT_SYMBOL(__moddi3);
 EXPORT_SYMBOL(__umoddi3);
 
+#include <asm/page.h>
+EXPORT_SYMBOL(copy_page);
+
 #if defined(CONFIG_MD_RAID456) || defined(CONFIG_MD_RAID456_MODULE)
 extern void xor_ia64_2(void);
 extern void xor_ia64_3(void);
diff -puN arch/ia64/lib/copy_page-export.c~ia64-export-copy_page-to-modules-fix /dev/null
--- a/arch/ia64/lib/copy_page-export.c
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <asm/page.h>
-#include <linux/module.h>
-
-EXPORT_SYMBOL(copy_page);
_

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux