[-mm PATCH] slob: add kmem_set_shrinker

From: Yoichi Yuasa
Date: Fri Nov 11 2005 - 12:09:58 EST


Hi,

This patch adds kmem_set_shrinker() to SLOB.
It is necessary for fixing the build error.

Yoichi

Signed-off-by: Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx>

diff -Npru -X dontdiff mm2-orig/mm/slob.c mm2/mm/slob.c
--- mm2-orig/mm/slob.c 2005-11-11 22:21:20.000000000 +0900
+++ mm2/mm/slob.c 2005-11-11 23:15:02.000000000 +0900
@@ -240,6 +240,11 @@ unsigned int ksize(const void *block)
return ((slob_t *)block - 1)->units * SLOB_UNIT;
}

+void kmem_set_shrinker(kmem_cache_t *cachep, struct shrinker *shrinker)
+{
+}
+EXPORT_SYMBOL(kmem_set_shrinker);
+
struct kmem_cache {
unsigned int size, align;
const char *name;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/