path: root/drivers/staging/zcache/Makefile
diff options
authorNitin Gupta <ngupta@vflare.org>2011-02-18 17:33:18 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-23 14:02:56 -0800
commit3c8bb7aab9ad84bce7d81878fda64d631089a88d (patch)
treef4aac6c1b78f17fa261a38a51bc3aa339f640cc7 /drivers/staging/zcache/Makefile
parent5caf8fca2da11e368a2284f4c4f5c2cbbe1b3ec8 (diff)
staging: Allow sharing xvmalloc for zram and zcache
Both zram and zcache use xvmalloc allocator. If xvmalloc is compiled separately for both of them, we will get linker error if they are both selected as "built-in". We can also get linker error regarding missing xvmalloc symbols if zram is not built. So, we now compile xvmalloc separately and export its symbols which are then used by both of zram and zcache. Signed-off-by: Nitin Gupta <ngupta@vflare.org> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/zcache/Makefile')
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/zcache/Makefile b/drivers/staging/zcache/Makefile
index 7f64de4dff3..f5ec64f9447 100644
--- a/drivers/staging/zcache/Makefile
+++ b/drivers/staging/zcache/Makefile
@@ -1 +1,3 @@
-obj-$(CONFIG_ZCACHE) += zcache.o tmem.o
+zcache-y := tmem.o
+obj-$(CONFIG_ZCACHE) += zcache.o