mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-29 04:09:39 +00:00
![Nitin Gupta](/assets/img/avatar_default.png)
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>
4 lines
No EOL
100 B
Makefile
4 lines
No EOL
100 B
Makefile
zram-y := zram_drv.o zram_sysfs.o
|
|
|
|
obj-$(CONFIG_ZRAM) += zram.o
|
|
obj-$(CONFIG_XVMALLOC) += xvmalloc.o
|