Skip to contentSkip to conversation

zsmalloc: Fix "map_vm_area" undefined reference errors.

PATCH New Majunath Goudar 1 participant 1 message Oct 8, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

Cc Nitin Gupta <[email protected]>
Cc Seth Jennings <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Joerg Roedel <[email protected]>
Cc devel at driverdev.osuosl.org
Cc linux-kernel at vger.kernel.org
---
 drivers/staging/zsmalloc/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/staging/zsmalloc/Kconfig +1 -0
index 7fab032..0ae13cd 100644
@@ -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
Signature · 1 line
1.7.9.5