From patchwork Sun Aug 4 05:11:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: manjunath.goudar@linaro.org X-Patchwork-Id: 18759 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1532E25E07 for ; Sun, 4 Aug 2013 05:11:19 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l12sf2608993yen.2 for ; Sat, 03 Aug 2013 22:11:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:mime-version:x-gm-message-state :x-removed-original-auth:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type:content-transfer-encoding; bh=7VNto7DjNkq6MkV5W4qm6WsqRK1zBpHh3Rh/nxidTms=; b=ij98oEIc+74OhETCqgpcZ4phzmlqWzZEL9VaszVvRgAnG8kgQIx48cqHq0Lqy77/WW 441jqC84lq4v3HF8vP5tEQQRW18UCKHgKZV2KapaLw+B9HfB15bPVlcubEYcU1CSG+Qy F2ZZv6iHxktk/Z41VPooJzMiSOsT93qay0kNVp0zRuNVlLI6CoWRJEPpM3WIFqgA7cnH ojAakA24gxRvUNaDxW4kv63q9af145tOgj+Yqj8YLcFOSF4eyGp5eqeI8Quu97+AxkPi U52iv0VzDa+BO89xu/q9WotsOSTDjpvdA4pcLSU7R2xYhthJi91+XoR1zOi5derwmlcr iO4A== X-Received: by 10.224.64.202 with SMTP id f10mr19079077qai.2.1375593078704; Sat, 03 Aug 2013 22:11:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.234 with SMTP id o10ls2094802qev.24.gmail; Sat, 03 Aug 2013 22:11:18 -0700 (PDT) X-Received: by 10.52.171.111 with SMTP id at15mr2240547vdc.79.1375593078581; Sat, 03 Aug 2013 22:11:18 -0700 (PDT) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id gr9si3684709vec.149.2013.08.03.22.11.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 Aug 2013 22:11:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.42 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.42; Received: by mail-vb0-f42.google.com with SMTP id e12so1884895vbg.29 for ; Sat, 03 Aug 2013 22:11:18 -0700 (PDT) X-Received: by 10.58.187.4 with SMTP id fo4mr4215714vec.55.1375593078435; Sat, 03 Aug 2013 22:11:18 -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.221.11.8 with SMTP id pc8csp28495vcb; Sat, 3 Aug 2013 22:11:17 -0700 (PDT) X-Received: by 10.68.164.225 with SMTP id yt1mr15431342pbb.195.1375593077491; Sat, 03 Aug 2013 22:11:17 -0700 (PDT) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx.google.com with ESMTPS id l2si12855695pan.315.2013.08.03.22.11.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 Aug 2013 22:11:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.49 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=209.85.220.49; Received: by mail-pa0-f49.google.com with SMTP id bi5so2081600pad.8 for ; Sat, 03 Aug 2013 22:11:17 -0700 (PDT) X-Received: by 10.66.25.232 with SMTP id f8mr18816268pag.25.1375593076938; Sat, 03 Aug 2013 22:11:16 -0700 (PDT) Received: from localhost.localdomain ([223.239.128.50]) by mx.google.com with ESMTPSA id ss8sm20048524pab.6.2013.08.03.22.11.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 Aug 2013 22:11:16 -0700 (PDT) From: Manjunath Goudar To: linux-arm-kernel@lists.infradead.org Cc: patches@linaro.org, arnd@linaro.org, dsaxena@linaro.org, manjunath.goudar@linaro.org, linaro-kernel@lists.linaro.org, IWAMOTO Toshihiro , Hirokazu Takahashi , Dave Hansen , linux-mm@kvack.org, Johannes Weiner , Michal Hocko , Balbir Singh , KAMEZAWA Hiroyuki Subject: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Date: Sun, 4 Aug 2013 10:41:01 +0530 Message-Id: <1375593061-11350-1-git-send-email-manjunath.goudar@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkW+qEY7g4mJril2qZotGlU/wpBl50OvPKJRSryMqcTGkHZTm1ENMKwCjtCV60EEFjG518p 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.42 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: , s patch adds a Kconfig dependency on an MMU being available before CMA can be enabled. Without this patch, CMA can be enabled on an MMU-less system which can lead to issues. This was discovered during randconfig testing, in which CMA was enabled w/o MMU being enabled, leading to the following error: CC mm/migrate.o mm/migrate.c: In function ‘remove_migration_pte’: mm/migrate.c:134:3: error: implicit declaration of function ‘pmd_trans_huge’ [-Werror=implicit-function-declaration] if (pmd_trans_huge(*pmd)) ^ mm/migrate.c:137:3: error: implicit declaration of function ‘pte_offset_map’ [-Werror=implicit-function-declaration] ptep = pte_offset_map(pmd, addr); Signed-off-by: Manjunath Goudar Acked-by: Arnd Bergmann Cc: Deepak Saxena Cc: IWAMOTO Toshihiro Cc: Hirokazu Takahashi Cc: Dave Hansen Cc: linux-mm@kvack.org Cc: Johannes Weiner Cc: Michal Hocko Cc: Balbir Singh Cc: KAMEZAWA Hiroyuki --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 256bfd0..ad6b98e 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY config CMA bool "Contiguous Memory Allocator" - depends on HAVE_MEMBLOCK + depends on MMU && HAVE_MEMBLOCK select MIGRATION select MEMORY_ISOLATION help