From patchwork Wed Sep 4 04:26:38 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: 19738 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E094625DFC for ; Wed, 4 Sep 2013 04:27:01 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id m1sf7740718ves.2 for ; Tue, 03 Sep 2013 21:27:01 -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=dguVqIF0tJ1ZmMRn4kaq27xNJcAPzGyoEh4QUvNVrbuvMmu7mmIMA6ZHcYE1QrrRCY C7SqaKLJ4cEH46LFpdxlXUarbjdAwI+k4BNmqRPWl/2pfwBxGNQ7LJKnriTJ1K/jVHsc d/P8nAz+MEfCStoDMJvflBPDtKGoNmzClXv27yjE43/q60Z3qe28+BzRq6KBT4/Y7gys Jrm8ThudyzBDIYB7k/V+UeAgt3T0vPWpFMHMsr1HGgNdQti6r7iqflq5uN87EYWOv9ny vNegI8lOPcGxnsqoA047xbxXaSIzqs91zciOFQ2jlZsOOvB3bYtST4zN+WbpyTONqbOX m6qw== X-Received: by 10.224.52.6 with SMTP id f6mr1201619qag.2.1378268821526; Tue, 03 Sep 2013 21:27:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.49 with SMTP id f17ls1746965qey.33.gmail; Tue, 03 Sep 2013 21:27:01 -0700 (PDT) X-Received: by 10.220.145.132 with SMTP id d4mr655167vcv.9.1378268821430; Tue, 03 Sep 2013 21:27:01 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id f2si5362909vcz.26.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 21:27:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id 15so4784322vea.15 for ; Tue, 03 Sep 2013 21:27:01 -0700 (PDT) X-Gm-Message-State: ALoCoQmypkJQHFc8HCnd8mdHkMGYe3mioit0Uz2GJOLA5JFwO6H9dmYe6/NskctVLCQzefbpHcvH X-Received: by 10.221.40.10 with SMTP id to10mr643683vcb.22.1378268821271; Tue, 03 Sep 2013 21:27:01 -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 u4csp212495vcz; Tue, 3 Sep 2013 21:27:00 -0700 (PDT) X-Received: by 10.66.227.194 with SMTP id sc2mr1152741pac.41.1378268820337; Tue, 03 Sep 2013 21:27:00 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id hs9si18003352pbc.304.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 21:27:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id bg4so7333807pad.4 for ; Tue, 03 Sep 2013 21:26:59 -0700 (PDT) X-Received: by 10.66.26.194 with SMTP id n2mr1025564pag.151.1378268819847; Tue, 03 Sep 2013 21:26:59 -0700 (PDT) Received: from manjunath-Latitude-E6420.LGE.NET ([203.247.149.152]) by mx.google.com with ESMTPSA id fl3sm28055698pad.10.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 21:26:59 -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:56:38 +0530 Message-Id: <1378268798-9187-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.128.170 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