Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755914Ab3JHKcg (ORCPT ); Tue, 8 Oct 2013 06:32:36 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:50028 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753851Ab3JHKcf (ORCPT ); Tue, 8 Oct 2013 06:32:35 -0400 From: Majunath Goudar To: linux-arm-kernel@lists.infradead.org Cc: nataraja.km@lge.com, Majunath Goudar , Nitin Gupta , Seth Jennings , Greg Kroah-Hartman , Minchan Kim , Joerg Roedel , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] zsmalloc: Fix "map_vm_area" undefined reference errors. Date: Tue, 8 Oct 2013 16:02:15 +0530 Message-Id: <1381228335-18213-1-git-send-email-csmanjuvijay@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 42 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 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 --- drivers/staging/zsmalloc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/zsmalloc/Kconfig b/drivers/staging/zsmalloc/Kconfig index 7fab032..0ae13cd 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 -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/