[PATCH] Allow spufs to build as a module with slices enabled

Michael Ellerman michael at ellerman.id.au
Thu Mar 1 17:11:31 EST 2007


The slice code is missing some exports to allow spufs to build as a
module. Add them.

Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
 MODPOST 209 modules
WARNING: ".get_slice_psize" [arch/powerpc/platforms/cell/spufs/spufs.ko] undefined!
WARNING: ".slice_get_unmapped_area" [arch/powerpc/platforms/cell/spufs/spufs.ko] undefined!

---
 arch/powerpc/mm/slice.c |    3 +++
 1 file changed, 3 insertions(+)

Index: ecell/arch/powerpc/mm/slice.c
===================================================================
--- ecell.orig/arch/powerpc/mm/slice.c
+++ ecell/arch/powerpc/mm/slice.c
@@ -29,6 +29,7 @@
 #include <linux/pagemap.h>
 #include <linux/err.h>
 #include <linux/spinlock.h>
+#include <linux/module.h>
 #include <asm/mman.h>
 #include <asm/mmu.h>
 #include <asm/spu.h>
@@ -499,6 +500,7 @@ unsigned long slice_get_unmapped_area(un
 	return addr;
 
 }
+EXPORT_SYMBOL(slice_get_unmapped_area);
 
 unsigned long arch_get_unmapped_area(struct file *filp,
 				     unsigned long addr,
@@ -537,6 +539,7 @@ unsigned int get_slice_psize(struct mm_s
 
 	return (psizes >> (index * 4)) & 0xf;
 }
+EXPORT_SYMBOL(get_slice_psize);
 
 /*
  * This is called by hash_page when it needs to do a lazy conversion of



More information about the Linuxppc-dev mailing list