From af417e44d6c0d4d9875a955f78cb01f6df914d5b Mon Sep 17 00:00:00 2001 From: Majunath Goudar Date: Tue, 8 Oct 2013 16:02:15 +0530 Subject: [PATCH] zsmalloc: Fix "map_vm_area" undefined reference errors. This patch adds a MMU dependency to configure the ZSMALLOC in drivers/staging/zsmalloc/Kconfig. Without this patch, build system can lead to build failure. This was observed during randconfig testing, in which ZSMALLOC was enabled w/o MMU being enabled. Following was the error: LD vmlinux drivers/built-in.o: In function `__zs_map_object': drivers/staging/zsmalloc/zsmalloc-main.c:650: undefined reference to `map_vm_area' make: *** [vmlinux] Error 1 Change-Id: Ia78fb6b91949e85f3b9fee18eaffa18205aaccb9 Signed-off-by: Manjunath Goudar Cc: Nitin Gupta Cc: Seth Jennings Cc: Greg Kroah-Hartman Cc: Minchan Kim Cc: Joerg Roedel Cc: devel@driverdev.osuosl.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/staging/zsmalloc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/zsmalloc/Kconfig b/drivers/staging/zsmalloc/Kconfig index 7fab032..0ae13cd0 100644 --- a/drivers/staging/zsmalloc/Kconfig +++ b/drivers/staging/zsmalloc/Kconfig @@ -1,5 +1,6 @@ config ZSMALLOC bool "Memory allocator for compressed pages" + depends on MMU default n help zsmalloc is a slab-based memory allocator designed to store -- 2.7.4