From f1b59d2620ae2bd977e67e292f9bebc43049872c Mon Sep 17 00:00:00 2001 From: behlendo Date: Wed, 27 Feb 2008 19:09:51 +0000 Subject: Lots of build fixes. This is turning out to be a very good idea since it forcefully codifing the ABI. Since the shim layer is no longer linked at build time in to the test suite we can;'t cut any corners and get away with it. Everything is working now with the exception of sorting setting Module.symvers properly. This may take a little Makefile reorg. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@5 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c --- src/spl/linux-kmem.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/spl/linux-kmem.c') diff --git a/src/spl/linux-kmem.c b/src/spl/linux-kmem.c index e5ebdc175..4dc7c01d8 100644 --- a/src/spl/linux-kmem.c +++ b/src/spl/linux-kmem.c @@ -172,9 +172,9 @@ kmem_cache_generic_shrinker(int nr_to_scan, unsigned int gfp_mask) kmem_cache_t * __kmem_cache_create(char *name, size_t size, size_t align, - int (*constructor)(void *, void *, int), - void (*destructor)(void *, void *), - void (*reclaim)(void *), + kmem_constructor_t constructor, + kmem_destructor_t destructor, + kmem_reclaim_t reclaim, void *priv, void *vmp, int flags) { kmem_cache_t *cache; @@ -216,6 +216,7 @@ __kmem_cache_create(char *name, size_t size, size_t align, return cache; } +EXPORT_SYMBOL(__kmem_cache_create); /* Return codes discarded because Solaris implementation has void return */ void @@ -239,11 +240,12 @@ __kmem_cache_destroy(kmem_cache_t *cache) spin_unlock(&kmem_cache_cb_lock); } +EXPORT_SYMBOL(__kmem_cache_destroy); -void +void __kmem_reap(void) { - /* Since there's no easy hook in to linux to force all the registered + /* Since there's no easy hook in to linux to force all the registered * shrinkers to run we just run the ones registered for this shim */ kmem_cache_generic_shrinker(KMC_REAP_CHUNK, GFP_KERNEL); } - +EXPORT_SYMBOL(__kmem_reap); -- cgit v1.2.3