[-mm PATCH] slob: add kmem_set_shrinker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

Yoichi

Signed-off-by: Yoichi Yuasa <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux