From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Benjamin Herrenschmidt From: Michael Ellerman Date: Thu, 01 Mar 2007 15:11:31 +0900 Subject: [PATCH] Allow spufs to build as a module with slices enabled In-Reply-To: <20070220074433.96AAEDDDEC@ozlabs.org> Message-Id: <20070301061134.0B4B2DDEC1@ozlabs.org> Cc: linuxppc-dev@ozlabs.org, Arnd Bergmann , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The slice code is missing some exports to allow spufs to build as a module. Add them. Signed-off-by: Michael Ellerman --- 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 #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