staging: Allow sharing xvmalloc for zram and zcache
authorNitin Gupta <ngupta@vflare.org>
Fri, 18 Feb 2011 22:33:18 +0000 (17:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:02:56 +0000 (14:02 -0800)
commit3c8bb7aab9ad84bce7d81878fda64d631089a88d
treef4aac6c1b78f17fa261a38a51bc3aa339f640cc7
parent5caf8fca2da11e368a2284f4c4f5c2cbbe1b3ec8
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>
drivers/staging/Makefile
drivers/staging/zcache/Makefile
drivers/staging/zram/Kconfig
drivers/staging/zram/Makefile
drivers/staging/zram/xvmalloc.c