Subject: Allow spufs to build as a module with slices enabled From: Michael Ellerman The slice code is missing some exports to allow spufs to build as a module. Add them. Signed-off-by: Michael Ellerman Signed-off-by: Arnd Bergmann --- 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: linux-2.6/arch/powerpc/mm/slice.c =================================================================== --- linux-2.6.orig/arch/powerpc/mm/slice.c +++ linux-2.6/arch/powerpc/mm/slice.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -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