Received: by 10.213.65.68 with SMTP id h4csp1450410imn; Mon, 26 Mar 2018 07:46:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELuyEhyxARVUrSKY15+4MbmnzzFaWq3Re5aCnNvLIlHPUk6NmV42MjuMwtY4aak4iu6y+/ij X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr39975119plv.324.1522075617116; Mon, 26 Mar 2018 07:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522075617; cv=none; d=google.com; s=arc-20160816; b=KXEkBJ6EgGjr3zKbAUi+zg/zahk4Nlsk691rkgHZfS80Na4gBvZNLioqlSbZ+VzNKH WMkGT4MRd720VLIK1TcqDhqfQKtUBFKGjuhTObrC5kM6tn1TujqIQ/HN/waup3MwK+Jr 4cfl+wxtxGqX1fpXzp/FAc2szilLAEynQrrw8e2q1P28NKEZdBbptD1rw5VtAzFwRTU2 /JxoaWZbT1SoGSY5lfFveph7QTsQPWBI4QzOn01Sfj4HfdtmQnvd63WqzZrT70SKEjf2 dym/Bsb5PnDTTzL308A0XI5VLIPMtCgPzGHyT3P76cM0ac5VKI2YvbdQKxF4GoYNNhJD Ddsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=naHPUaaUcPYOGzxp7eToVj5Gl7hfKvSKSfDxSlHLwCU=; b=xCfPnL1euPtDVAgAqS6HDKKwfam+toNk13PJUTtlmX25dLClMjhVvOHDm+rLjy0cBh ghnfixlMdwrUorqO43EE1rX0JB3VrVLw4Hkm9kBGWhX7/ChsP+ziHEHatqpVOJrUlc03 8JpSQM75Q0Qn5VbqL01zSNQaDjaNbgYFUK7M89KkO5jD15jx49u2bUqDpeI2CG7LQyMO L1QaWo7Y76Bn3pCNeK52N41VA4mO4lZZaFF4YFQ8ewogdlZzh6dwHIL9QBhOwFjXgXol MY6xXkTXYOieOPhgmr9YwYC5eyRhQ0ekvqvekFqET396c9KP/ABBFFfBEkZJJQDrspZg w4gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16-v6si2603157plo.295.2018.03.26.07.46.42; Mon, 26 Mar 2018 07:46:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752444AbeCZOok (ORCPT + 99 others); Mon, 26 Mar 2018 10:44:40 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:58491 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbeCZOoi (ORCPT ); Mon, 26 Mar 2018 10:44:38 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 578E021BD7; Mon, 26 Mar 2018 14:44:37 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo02-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l1ZqHmA0uH5K; Mon, 26 Mar 2018 14:44:37 +0000 (UTC) Received: from lianli (31-211-236-16.customers.ownit.se [31.211.236.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 908D1219FF; Mon, 26 Mar 2018 14:44:29 +0000 (UTC) Date: Mon, 26 Mar 2018 16:44:14 +0200 From: Emil Goode To: Thierry Reding , Thierry Reding Cc: dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] gpu: host1x: Fix compiler errors Message-ID: <20180326144314.xeuocqp5fjpfjm3q@lianli> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The compiler is complaining with the following errors: drivers/gpu/host1x/cdma.c:94:48: error: passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] drivers/gpu/host1x/cdma.c:113:48: error: passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] The expected pointer type of the third argument to dma_alloc_wc() is dma_addr_t but phys_addr_t is passed. Fix this by adding casts to the expected pointer type. Signed-off-by: Emil Goode --- drivers/gpu/host1x/cdma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/host1x/cdma.c b/drivers/gpu/host1x/cdma.c index 28541b280739..5e8b321a751e 100644 --- a/drivers/gpu/host1x/cdma.c +++ b/drivers/gpu/host1x/cdma.c @@ -91,8 +91,8 @@ static int host1x_pushbuffer_init(struct push_buffer *pb) size = iova_align(&host1x->iova, size); - pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, - GFP_KERNEL); + pb->mapped = dma_alloc_wc(host1x->dev, size, + (dma_addr_t *)&pb->phys, GFP_KERNEL); if (!pb->mapped) return -ENOMEM; @@ -110,8 +110,8 @@ static int host1x_pushbuffer_init(struct push_buffer *pb) if (err) goto iommu_free_iova; } else { - pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, - GFP_KERNEL); + pb->mapped = dma_alloc_wc(host1x->dev, size, + (dma_addr_t *)&pb->phys, GFP_KERNEL); if (!pb->mapped) return -ENOMEM; -- 2.11.0