Received: by 10.213.65.68 with SMTP id h4csp1462036imn; Mon, 26 Mar 2018 08:00:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELugGb3/wbZ3L/IG59Z9/6Ocz2LTrY1/iLnx//e61TGmYNu+o+N84qq/xP/EICsCBKSnG1SK X-Received: by 2002:a17:902:566:: with SMTP id 93-v6mr39743880plf.327.1522076443500; Mon, 26 Mar 2018 08:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522076443; cv=none; d=google.com; s=arc-20160816; b=DCBE/8MXC9F/xw2R8uPRSRvclOnpEBs5IHXvrdraITITyrgAgZzyoMybMeMrRJbSjR XH4eMBVm2mk9SDMKnAfywdNNe2p3EJojFEDHejqHkSZP7dUyqIA9+xzWVHo4c5i4/q8p d/o5KqD6PISSKbSRBXF4XTj7pgbIv2ddh7G7+USDdAlbrH9Xdqd2Ub9pATHDcrKzGIQg 4KyESCCRWECObBccnOyTWQO7OGPr5L3Z/i4cemPfUJp3l0upaGj1Nm/haBjrI4kWZuDk asfmLHIS+hGHOSfVSFRmnbBlDeFT90TiwcYXfd57z6hIw5maJoI2v2e38TczeVlvhzgE 43gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jTasjQ8TXKaRzskVP70XllRycJFhGHfp2V2xpPYeaJE=; b=q36DZIaq/scesCAhW9+FxziYvVYHz4gyPMtVVbH76tMfQ9kpO6YLj5JLYR8FAac8Ts WgfK3FFXqDmZV4oP9y2f3M1hiK+Wci3GZSTTi7cFAlaVl37WwK1vw44oR9Txab/sbDpf Cx8j/Ee5YU3xO/UiBkQ1Bu7HzvtYj/lp0KOJ+yGfE8hRjKfbVYWoht9eprYR7EzqkxXC GzYGA5GNQ0ui42Dm9HVFZOgOuqP7MGqFViKOWZ2wwm/tErFNujhrhqI8GO2ieZlq4hCZ 3ZXY0PD13940+VPAfJ3v3MF57nwkqs9PnbSD1asfxvq3r3sGq4m4t+JRy9uYAObETpVH 2sFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dnb8PVAH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si9161846pgp.94.2018.03.26.08.00.27; Mon, 26 Mar 2018 08:00:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dnb8PVAH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752113AbeCZO5j (ORCPT + 99 others); Mon, 26 Mar 2018 10:57:39 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52332 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbeCZO5h (ORCPT ); Mon, 26 Mar 2018 10:57:37 -0400 Received: by mail-wm0-f65.google.com with SMTP id l9so16058779wmh.2; Mon, 26 Mar 2018 07:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jTasjQ8TXKaRzskVP70XllRycJFhGHfp2V2xpPYeaJE=; b=dnb8PVAHezbP0OzJ+x+VwOiWYfElIT6sIQmeKrKcjfC8dobZSTPO6xd+pccRk+x2Vr noqFqyMaW3UbV8YE2SqiIaERfqPIvrngBJt9cPScf4tovrY4xtNpPZ8oA1nmQl3j5dCl IGnF4H4TVzV9BWHuqoINIDR9hnG5bk4K22py1pwiy6u2VItpnZrwqbuhfb1oQF90OVq9 dyDA1O+C0nANrFNsG5E3zTpqfFLiw+X+U5n1JPnyEGkez3ib7qb3V+HHCMGx/IGROuHM 012ntpKKdS/zKiaFG3ylrNEIVI0dGoHHDblPCbUa73nVMrZIgvVOOKFOYdnIHp/rxhz/ fDSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jTasjQ8TXKaRzskVP70XllRycJFhGHfp2V2xpPYeaJE=; b=YuUaJJaVGCiRqMOoY4NhcVFt5mXiziKLmvyaMXsTtLkuTnfe6BFVWV4v+dPmjz4ekt w4bKdr9Ef9FBuIfbgFJjyCiVk9gPxLkdDm9gdjPdOM3gFpCD+puq3ncihjjCRwhVHXBB 4yLviisu0Qx9N+kE0YL0BiLokhQSXpfheG6URnqjiF0c1ilxAEwjcXYDjVxkiUqiVQMy WRmkRlk6ArJfKwcpJ4HJwaAf+SWvvuy2+YH7KJVOScH2aox0lm0DtV/v2SK2XFf8xl4b baxzhq+SlI53cx15hZFqVjSvcuDKU2ws13QMDWLVOVUAPxUGBpZAaZY56zCzM5Of6wbK AO/A== X-Gm-Message-State: AElRT7F0LcC68cU4NpxpV9AVBpsAy9a58Icm5rT8rUg0ygSRTwDsxSyj O0SBssQkaqtXxPk+E5UicbM= X-Received: by 10.28.175.6 with SMTP id y6mr7858974wme.107.1522076256054; Mon, 26 Mar 2018 07:57:36 -0700 (PDT) Received: from localhost (p200300E41F1A6C00A7FFE15449086C5C.dip0.t-ipconnect.de. [2003:e4:1f1a:6c00:a7ff:e154:4908:6c5c]) by smtp.gmail.com with ESMTPSA id 39sm36773360wry.89.2018.03.26.07.57.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 07:57:35 -0700 (PDT) Date: Mon, 26 Mar 2018 16:57:34 +0200 From: Thierry Reding To: Emil Goode Cc: Thierry Reding , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] gpu: host1x: Fix compiler errors Message-ID: <20180326145734.GA8016@ulmo> References: <20180326144314.xeuocqp5fjpfjm3q@lianli> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <20180326144314.xeuocqp5fjpfjm3q@lianli> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > The compiler is complaining with the following errors: >=20 > drivers/gpu/host1x/cdma.c:94:48: error: > passing argument 3 of =E2=80=98dma_alloc_wc=E2=80=99 from incompatible p= ointer type > [-Werror=3Dincompatible-pointer-types] >=20 > drivers/gpu/host1x/cdma.c:113:48: error: > passing argument 3 of =E2=80=98dma_alloc_wc=E2=80=99 from incompatible p= ointer type > [-Werror=3Dincompatible-pointer-types] >=20 > 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. >=20 > Signed-off-by: Emil Goode > --- > drivers/gpu/host1x/cdma.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) What compiler do you use? I do regular builds and check for warnings and errors, and this one is new to me. Thierry >=20 > 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 *p= b) > =20 > size =3D iova_align(&host1x->iova, size); > =20 > - pb->mapped =3D dma_alloc_wc(host1x->dev, size, &pb->phys, > - GFP_KERNEL); > + pb->mapped =3D dma_alloc_wc(host1x->dev, size, > + (dma_addr_t *)&pb->phys, GFP_KERNEL); > if (!pb->mapped) > return -ENOMEM; > =20 > @@ -110,8 +110,8 @@ static int host1x_pushbuffer_init(struct push_buffer = *pb) > if (err) > goto iommu_free_iova; > } else { > - pb->mapped =3D dma_alloc_wc(host1x->dev, size, &pb->phys, > - GFP_KERNEL); > + pb->mapped =3D dma_alloc_wc(host1x->dev, size, > + (dma_addr_t *)&pb->phys, GFP_KERNEL); > if (!pb->mapped) > return -ENOMEM; > =20 > --=20 > 2.11.0 >=20 --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlq5ClsACgkQ3SOs138+ s6EYmRAAtpAzxsh/1a+tjErMDxZSzD5jtDNSIAX8wFlhzA1kfouwtI5K7RVNs2xI ELPi3T5HWS1YP7FU2lHJ+TutyaNQpYbznzSaYFOdw5PK/3AtrHVW1AVyXVWoylb7 JipgdJ9lPZTP5y5BNWhPnRBlGMkzt6D+W5UPoB0A9lEfHDe3JQ7dNhY0ObUR9obw 5esC2YFojPkEey23cvDelcqqbe8C025babyloB+N1pcvSCevvedCKtcwPvKg9HKp 93ZYae1a7veCDmpiiL8Szcj5Ajas9HS4oh3HMONLhzMJeagtHvqNUvfAMDAIV62K 2ImnSo0RoNAXJJbRX2KZ1/EV6VXuJxltSXjiz8ZNEGIS0E6H9KqzLZStV+eSx0qc h+xmFO2qORcc887193ibKvf0EblBgg3kk2iFdl70/IDLdT91bwijC1tyZ6FP/EYo dwZJlx/04McXcr9t1Xshd+XbCXJZ4etp6dmOxltxYUpWlWOmIt1Paquyz7oMfZo3 773TJi1HtV01x+zKHnP/ARCzY3vhLGu4FxsXufWm8r/givhkpnehbLhFl1Lg1+es ih5cw0V95BYiPSJF8P77p7O2u1UBmRWYvYsbts51C/e+WXYISimGsXuV1gOwb6/4 ab5lySeUbGOtf9meJzFQM44tXQBVKYwHFUGT2KmDaqeywZLaPzQ= =muEF -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--