From patchwork Sat Aug 15 15:52:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 7020851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 18F479F358 for ; Sat, 15 Aug 2015 15:56:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4829020619 for ; Sat, 15 Aug 2015 15:56:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 70FB62061A for ; Sat, 15 Aug 2015 15:56:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQdlp-0003mG-VD; Sat, 15 Aug 2015 15:53:21 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQdlo-0003jw-0A for linux-arm-kernel@lists.infradead.org; Sat, 15 Aug 2015 15:53:20 +0000 Received: by wicne3 with SMTP id ne3so40403467wic.0 for ; Sat, 15 Aug 2015 08:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=q3LfM9NvwgQGnD+4MNYXqXSv33CGBK5RAe3JAlQdGng=; b=aTxdpMGhM4bpCfNsp3nGF/0ii7tiKVLP44x8ux1bHQwOPrIrxch31YSBOyBQYLW7nP SgqBomrx0p3aNbzGK6/nuf5hvgkaktfehtY/FDDxnyey0zAPI+EXo6Usbj+3Tcz+FLQg 4apooLWiv2osizPQPBphCEB0M2CTGQFx99ZWpkpThpTsioj68alxdN0Q4vbC5Xna96NE qtn0dGB33w6hSBTura7WrUqRa4PzxqowdKsdkbPqyrYAQo+pA6/AEJO2wXK3pmFbZxOa 83pUKHlQL/+r0jUFfamV55enIV2G6zmWyvd+rMW7OWnCa+Y6xDyHzRPuxQlYQRZdqO8q D5QQ== X-Received: by 10.180.24.40 with SMTP id r8mr18350122wif.13.1439653978109; Sat, 15 Aug 2015 08:52:58 -0700 (PDT) Received: from localhost.localdomain (p4FEE1A5F.dip0.t-ipconnect.de. [79.238.26.95]) by smtp.gmail.com with ESMTPSA id a2sm13443189wjf.0.2015.08.15.08.52.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 15 Aug 2015 08:52:57 -0700 (PDT) From: Dirk Behme To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm: dma-mapping: add cast to DMA_ERROR_CODE Date: Sat, 15 Aug 2015 17:52:51 +0200 Message-Id: <1439653971-867-1-git-send-email-dirk.behme@gmail.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150815_085320_227501_8A090995 X-CRM114-Status: GOOD ( 11.14 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dirk Behme Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the compiler warning ./arch/arm/include/asm/dma-mapping.h: In function ‘dma_mapping_error’: ./arch/arm/include/asm/dma-mapping.h:176:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return dma_addr == DMA_ERROR_CODE; ^ we get building the kernel with W=1. This is done the same way we have already in the arm64 version. Signed-off-by: Dirk Behme --- arch/arm/include/asm/dma-mapping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index b52101d..68e41e8 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h @@ -14,7 +14,7 @@ #include #include -#define DMA_ERROR_CODE (~0) +#define DMA_ERROR_CODE (~(dma_addr_t)0) extern struct dma_map_ops arm_dma_ops; extern struct dma_map_ops arm_coherent_dma_ops;