]> granicus.if.org Git - spl/commitdiff
Fix incorrect type in spl_kmem_cache_set_move() parameter
authorRichard Yao <ryao@cs.stonybrook.edu>
Wed, 1 Aug 2012 06:00:40 +0000 (02:00 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Aug 2012 23:35:18 +0000 (16:35 -0700)
A preprocessor definition renders this harmless. However, it is a good
idea to change this to be consistent.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
include/sys/kmem.h
module/spl/spl-kmem.c

index 796af44e8f72d1327d7f9548adc190260a67c34a..4383efb7c917d5f4106d99d31edc22593b14d459 100644 (file)
@@ -413,7 +413,7 @@ typedef struct spl_kmem_cache {
 extern spl_kmem_cache_t *spl_kmem_cache_create(char *name, size_t size,
        size_t align, spl_kmem_ctor_t ctor, spl_kmem_dtor_t dtor,
        spl_kmem_reclaim_t reclaim, void *priv, void *vmp, int flags);
-extern void spl_kmem_cache_set_move(kmem_cache_t *,
+extern void spl_kmem_cache_set_move(spl_kmem_cache_t *,
        kmem_cbrc_t (*)(void *, void *, size_t, void *));
 extern void spl_kmem_cache_destroy(spl_kmem_cache_t *skc);
 extern void *spl_kmem_cache_alloc(spl_kmem_cache_t *skc, int flags);
index 80c4ff4b9fcdfad80f7df71db989d87551a5fcad..28afc602450491a310a52da7ff6ead9811fa9f42 100644 (file)
@@ -1484,7 +1484,7 @@ EXPORT_SYMBOL(spl_kmem_cache_create);
  * XXX: Unimplemented but harmless to stub out for now.
  */
 void
-spl_kmem_cache_set_move(kmem_cache_t *skc,
+spl_kmem_cache_set_move(spl_kmem_cache_t *skc,
     kmem_cbrc_t (move)(void *, void *, size_t, void *))
 {
         ASSERT(move != NULL);