From patchwork Wed Jun 6 10:35:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9139 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8797D23EB4 for ; Wed, 6 Jun 2012 10:36:05 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2F709A18694 for ; Wed, 6 Jun 2012 10:36:05 +0000 (UTC) Received: by yhpp61 with SMTP id p61so5242275yhp.11 for ; Wed, 06 Jun 2012 03:36:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:cc:subject:x-beenthere :x-mailman-version:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=58RMjC6uQzyRhzBvTl4zcM73SAVutmZTlSZttmodW3A=; b=W3YqJ69j05nS9FMgEvWPWHFrxAzPSMMowPFbtck2cBoDY5DUCVMW0b3x9EcnkT2ljP yQGLMpcKj/nc/4X5GJIZCV+Z9555YyD9wEGq6mW/awq4zgmdeiL9tuLBkjEDlacvpmd/ 84nOLFgxV7F2TOjWhTew0xFrvIzcx2oov48TQZ7IAdTLfJIHCvRdxOPgnLwIwldDGaTJ 9J2hcmLHGnZ+L4/sHBQi6bPQeI422LMG/aZWsxu0DzSH30nt4JlEjAdxstEF0h6Cxg91 R6bJ83UXYXJa+GMbNNVGSAwAQ1wWKbP9iOc56F2RAn+uTFe6sLOhBmRtZw1IqdQO3C2+ guJw== Received: by 10.50.163.99 with SMTP id yh3mr5824897igb.53.1338978964328; Wed, 06 Jun 2012 03:36:04 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp78853ibb; Wed, 6 Jun 2012 03:36:03 -0700 (PDT) Received: by 10.204.136.195 with SMTP id s3mr11510668bkt.117.1338978962489; Wed, 06 Jun 2012 03:36:02 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id fs20si767825bkc.63.2012.06.06.03.36.00; Wed, 06 Jun 2012 03:36:02 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1ScDam-0006S0-49; Wed, 06 Jun 2012 10:35:56 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1ScDak-0006Qb-BN for linaro-mm-sig@lists.linaro.org; Wed, 06 Jun 2012 10:35:54 +0000 Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M5600LSXYRQGIE0@mailout1.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 06 Jun 2012 19:35:50 +0900 (KST) X-AuditID: cbfee61b-b7f8f6d000005ca4-f1-4fcf3286b8d9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 19.0E.23716.6823FCF4; Wed, 06 Jun 2012 19:35:50 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M5600BDNYRIBK50@mmp1.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 06 Jun 2012 19:35:50 +0900 (KST) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org Date: Wed, 06 Jun 2012 12:35:22 +0200 Message-id: <1338978922-30452-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <20120606092946.GL8262@n2100.arm.linux.org.uk> References: <20120606092946.GL8262@n2100.arm.linux.org.uk> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t9jAd02o/P+Bm9e6Fp8ufKQyYHR4/a/ x8wBjFFcNimpOZllqUX6dglcGbNbVrMVdHBX9H2ewdbAOJezi5GTQ0LARGLK3JXsELaYxIV7 69m6GLk4hAQWMUo8mHmRCcJZyyRxbftHsCo2AUOJrrddbCC2iICHxJMV55hBipgF1jFKLGn/ zgSSEBbwlHgz+xILiM0ioCrx4MURVhCbF6hh1bG3jBDr5CWe3u8DG8QpYC0xac0OsHohASuJ l1tmME9g5F3AyLCKUTS1ILmgOCk910ivODG3uDQvXS85P3cTI9jvz6R3MK5qsDjEKMDBqMTD e0DhvL8Qa2JZcWXuIUYJDmYlEd5yJaAQb0piZVVqUX58UWlOavEhRmkOFiVx3r5j5/yFBNIT S1KzU1MLUotgskwcnFINjI1qXYdbSzd9TFbobL79UfSxuRrv580lTkE75899tW5JC69Dvd8i Ac+erMfmr1I0Gb6cOfX4ze1P9/peeL2LC+OSZ+iwd5cXY1t1aFes0EHmTerXHLVte/PX3r/O wf/1ae+eC+o//RadKXkVeS3k85TDPRN32/sc7ik+f6PkzqTdMo/09tYUnFJiKc5INNRiLipO BABYHi0n9wEAAA== X-TM-AS-MML: No Cc: Kyungmin Park , Russell King , Michal Nazarewicz Subject: [Linaro-mm-sig] [PATCHv2] ARM: mm: fix type of the arm_dma_limit global variable X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQk5+9ZfJh0ax7fOYBT6lKYbgDQwVIXgRs1BVPz/sfvOqZrZrs2jVZV7vRW5begy4mUvJFEH arm_dma_limit stores physical address of maximal address accessible by DMA, so the phys_addr_t type makes much more sense for it instead of u32. This patch fixes the following build warning: arch/arm/mm/init.c:380: warning: comparison of distinct pointer types lacks a cast Reported-by: Russell King Signed-off-by: Marek Szyprowski --- arch/arm/mm/init.c | 2 +- arch/arm/mm/mm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index c21d06c..f54d592 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -212,7 +212,7 @@ EXPORT_SYMBOL(arm_dma_zone_size); * allocations. This must be the smallest DMA mask in the system, * so a successful GFP_DMA allocation will always satisfy this. */ -u32 arm_dma_limit; +phys_addr_t arm_dma_limit; static void __init arm_adjust_dma_zone(unsigned long *size, unsigned long *hole, unsigned long dma_size) diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index 93dc0c1..c471436 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h @@ -62,7 +62,7 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page #endif #ifdef CONFIG_ZONE_DMA -extern u32 arm_dma_limit; +extern phys_addr_t arm_dma_limit; #else #define arm_dma_limit ((u32)~0) #endif