From patchwork Wed Sep 4 04:29:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjunath.goudar@linaro.org X-Patchwork-Id: 19739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E263A25DFC for ; Wed, 4 Sep 2013 04:29:24 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf2856974qcv.7 for ; Tue, 03 Sep 2013 21:29:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=pEymFo0//q69GeQ4Jg0kwwxX4MD7L1Q0u09AsM52xE0=; b=fRxB88l5C6UoH1Y35liI9yCzg2SAqOP0e4rbR7YC1Rgaftk/RClufPRulhDIFvrgii os0DQvQZnPftQdFvwMimjHq4qwjyjDwb43OWX6bGpUTNqRw4GCHYKnmGtzl4QhuNcXfX 38RvajcDj+ChCJtRt/a36l35WgdTOMbQGKJA0ba3YXm+dok4uDZOX9wdkXBAmoEiDfvt P8DFPydGlIrd+Rh1QjlBUbws2bv+V4ATD0eP+zULapMi/685/dQKnkDoCkUmOdCqS87F Zb+JWFK+fLcBqkI5sIYDLJKDZLmH3/K48zYdbnkuOJxMGcrdZW9DiMrcWk3vjqwcF9Mt S6Jg== X-Received: by 10.236.19.225 with SMTP id n61mr382309yhn.8.1378268964767; Tue, 03 Sep 2013 21:29:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.172 with SMTP id v12ls1618308qef.91.gmail; Tue, 03 Sep 2013 21:29:24 -0700 (PDT) X-Received: by 10.58.155.68 with SMTP id vu4mr656440veb.21.1378268964672; Tue, 03 Sep 2013 21:29:24 -0700 (PDT) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id lu1si5367402vcb.13.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 21:29:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id h11so4799197vbh.30 for ; Tue, 03 Sep 2013 21:29:24 -0700 (PDT) X-Gm-Message-State: ALoCoQl5bT3H3LJ+h2/98YUeu5hDkVxmcjG/lEw9hMD2P64e2KvVexXi8T79JDfyy20WIARFLWV9 X-Received: by 10.58.217.167 with SMTP id oz7mr657491vec.15.1378268964592; Tue, 03 Sep 2013 21:29:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp212577vcz; Tue, 3 Sep 2013 21:29:24 -0700 (PDT) X-Received: by 10.68.135.101 with SMTP id pr5mr768990pbb.196.1378268963693; Tue, 03 Sep 2013 21:29:23 -0700 (PDT) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id vs7si18030037pbc.235.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 21:29:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id rp2so6966378pbb.28 for ; Tue, 03 Sep 2013 21:29:23 -0700 (PDT) X-Received: by 10.66.152.102 with SMTP id ux6mr1082696pab.79.1378268963206; Tue, 03 Sep 2013 21:29:23 -0700 (PDT) Received: from manjunath-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id y5sm5687216pbs.18.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 21:29:22 -0700 (PDT) From: Manjunath Goudar To: manjunath.goudar@linaro.org Cc: arnd@linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, dsaxena@linaro.org Subject: [PATCH] zsmalloc: Fix "map_vm_area" undefined reference errors. Date: Wed, 4 Sep 2013 09:59:09 +0530 Message-Id: <1378268949-9336-1-git-send-email-manjunath.goudar@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: manjunath.goudar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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: Arnd Bergmann Cc: Deepak Saxena Cc: Linus Walleij 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