Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4280809imm; Fri, 18 May 2018 02:24:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9clMCmZxnuiZqOF6m6co3YroKQ++aUdU907bU0M82y5+Q0q0VnHxippe2Sn+DgAUfdPyD X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr8872173plo.329.1526635447037; Fri, 18 May 2018 02:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635447; cv=none; d=google.com; s=arc-20160816; b=dtvpbiteGbOSkfuxLSzyK+DjGCSF8UJ38SdgbeBiKltvX+MPVbEhb8etijPdBs20c+ SmEiQiiXc+W7Nahiyd6t72ThG4lX1vSnHTlp23Vk2w9/d5yK4+9Vnw6UOTaI9CT7ZzuS 6BPbl+KGfyyPs3Vz1R2WAl8ZWk2htE/aGHEU1OrfxZ1YHf3TYz8xXB/3nQqNXCu8sUQT Awow8SysGhOtvzAZRQJFR3yvJLm6+gFL8Is6m5LXW3xaL1kWYYeA3yxKNaC0yQNThkrv /iLTcvJvSjc7ywvyvO42VnbPN/27SuhkbJyt5bUfLC7UxGwkUnB9NQadRMBfx2MIDH9j YreA== 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=fXdRgm9M2PobAKg1yfLf7qzNNRwldQ06rqTZvmOf2yE=; b=TY5MhQWzK9XiMScVEUKQnNmkURyT2QAUlmY/kix94KBiwtaqG+y3aXgd1YocNecDb8 NBm44bya1lz6BB64QOUg4fkMB2nNjkS+pko4yRJtL+TkqMVaq+nS2HR4DIMSW0XFdTnF oBWe4oYe0YjgF9iw4Phs4KcjzI3ZBDs+TLWVKUB+7gN1OGbSmXm+EegqoXhi9nxuoTlF axZ6BEXZ9pZF/qAj/dd5Htl6R6YKFvjZXSPQ2mVNEbhY/zjxj+RCDKhK2OSkXyuzFujD IDkcJm7OCJJ2Q+5CtDlmvSEJ6lm0Dl2ZV0vjhWGZQomx7gjwNQmK0fcA+f204RtWJW2g KwNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LzVCLUuH; 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 f14-v6si3668465pgn.267.2018.05.18.02.23.52; Fri, 18 May 2018 02:24:06 -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=LzVCLUuH; 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 S1752799AbeERJWH (ORCPT + 99 others); Fri, 18 May 2018 05:22:07 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36019 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbeERJWE (ORCPT ); Fri, 18 May 2018 05:22:04 -0400 Received: by mail-wm0-f65.google.com with SMTP id n10-v6so13806598wmc.1; Fri, 18 May 2018 02:22:04 -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=fXdRgm9M2PobAKg1yfLf7qzNNRwldQ06rqTZvmOf2yE=; b=LzVCLUuHoPM+HHBOySoILS2I0m7DBOF+wP1ls+KJMRm+phrCY0hmbBvxCD5lu0fAcu VBkSGJafZk2rRDsh0vBfHnOREr7928XGllu0AC5uFQMEZPvU8oBtHH7ke1feWgqffkR1 XfX8HyXZGyVK2s4ed8/SZMZJgYNwTH+g8zhmJ59sRDHpcIputO5fomHfUGBMldcKNnsB Osx3985CCZl4+KLywiF6uHolZl6nSN7bUAI37barsibOF9hXhrd/pybcw0yxbHWmKATn WwU1rZ5DPJvqnzPWeV7vHZakg+q9byBB2/gszEpNRiFv5KQpGjmYrH2kymsD8QacnI4e 4GtA== 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=fXdRgm9M2PobAKg1yfLf7qzNNRwldQ06rqTZvmOf2yE=; b=g/Sy44zkRUmNynaRqCNnRnRnBPFok6CHZ3ue9LtW2gJCmsX9b3vUBWVL1ErmEDTAXx ToVRAVmA7PBj5Ofyncw8ygPbYhm/KGHKEn6kZq9PHLOXzEg1bVsTbk01kPulooBe4aJ8 /SViXySf3Mf258EQMQW2COcIwXAHr0/RkazIV3ybz8jbGOlx63hg0isUkYyH1iEHfDD8 adP3O2o2dGm5KU8bYVwFDJTg7a2jGDW7KvocfsBj4MTQJqTny/4kbiq2f5tBtlUuqD0m YGxYdkkMrgMvfBWJI/BeDhmOb8OiNZgZnrMdr94Io774LwtTmicriJzfJOXnHA9Y/1bq XrEQ== X-Gm-Message-State: ALKqPwdORDo9slR9UKMTfWRgdx2CtlNJFBpDBfh/FKEyx0WviIL3R4OP rycBqXLxYWRX/RvrTYhXtu04fg== X-Received: by 2002:a1c:7cf:: with SMTP id 198-v6mr4261188wmh.149.1526635323333; Fri, 18 May 2018 02:22:03 -0700 (PDT) Received: from localhost (p200300E41F19FC00D958180F3872A5C5.dip0.t-ipconnect.de. [2003:e4:1f19:fc00:d958:180f:3872:a5c5]) by smtp.gmail.com with ESMTPSA id z72-v6sm7224694wmc.28.2018.05.18.02.22.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 02:22:02 -0700 (PDT) Date: Fri, 18 May 2018 11:22:01 +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 v2] gpu: host1x: Fix compiler errors by converting to dma_addr_t Message-ID: <20180518092201.GL14500@ulmo> References: <20180516102204.stviarlxgrz3k2nh@lianli> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zH41lVBEV8cLJnCl" Content-Disposition: inline In-Reply-To: <20180516102204.stviarlxgrz3k2nh@lianli> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zH41lVBEV8cLJnCl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 16, 2018 at 12:22:04PM +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. >=20 > Change the phys member of struct push_buffer to be dma_addr_t so that we > pass the correct type to dma_alloc_wc(). > Also check pb->mapped for non-NULL in the destroy function as that is the > right way of checking if dma_alloc_wc() was successful. >=20 > Signed-off-by: Emil Goode > --- > v2: - Change the phys member type instead of adding casts. > - Check pb->mapped in the destroy function as 0 is a valid value > for dma_addr_t. >=20 > drivers/gpu/host1x/cdma.c | 2 +- > drivers/gpu/host1x/cdma.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Applied, thanks. Thierry --zH41lVBEV8cLJnCl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlr+mzkACgkQ3SOs138+ s6E/pg//bHifSGSSjuLuoGSL2+fTU7b8n8NLFMy43WOwRNaOZWmQ23lGmSrTrSm8 4EhzWSrEFdKL4YR/n3r6EsaH2IZjPxEM2qd0+V525ZURbkfy/kOqPUGa6lf2THJ1 nGt7pDOZH6gZzqYfrkZygmrL5KbterkF9V39Mu77xehmP6BVKT2XGlXTbJCcl4cV kPwUnTblvQAMstZWLr9WZKV54JSB93l1oiA4mgxIIrlNusu4itOefMyTj5BMKmj2 YVp8Dnw9cuJ0gJl3cbGpXL51aJzO5dqaBXy/Ws4l2fmR0Cp132DWZl1X5NOx8Bi5 4JLvc5+V+MdE19Ohntwok1qffUvRZj6xJwLuvCAuDSFiB5TnwsotMFxdMt/UULeg qraPDDVJ10QaXchAgfS1w+d1ZdSDeDoWsvurdEfuy7vHV/IeZbOZBqRzoNie0wfX jtDxd/dKSpPr9pkPuMuiT3RVSGYIiST8e0hmDlO5nJnx8rw4vyIWExKFNRKcjln6 o268mMhtRF0/Su0o565/sq99mhdZNJkkm/G/glzCcgFNcWUqsQYHLhHyP8iTD93X 00IUTlPmY7iJ2yIwq08hvhPkPNjrkZm2HwK1cx+CYB1iH6H1yzcRfUNyb67LeW27 JstXrXkcLR6LmzshZhloGkqaqCO8kyyfuAgmjbsC2U75j8nyJDk= =EXzw -----END PGP SIGNATURE----- --zH41lVBEV8cLJnCl--