Received: by 10.213.65.68 with SMTP id h4csp482006imn; Tue, 13 Mar 2018 10:25:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+XKhcUKZP9cubDQiS8M55l+mLEz1GVsNi45BhlxQMlHBdtRWJ5KNsCprwsmz610KzShDD X-Received: by 10.101.101.133 with SMTP id u5mr1098389pgv.151.1520961933212; Tue, 13 Mar 2018 10:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520961933; cv=none; d=google.com; s=arc-20160816; b=u4dHeYI+43GZBX/aH7EI6jwA516SrbhIMyVcjCXge2kNxSLm365YBuhHCEb0Uly1ST V+/nIaMdPnhP+o7QGbGAlcugaCHyMTFXrxJcn5BlyTlKVx9gCx/sC+Z7DGF7rV89PcHN efvvE4lfYo44vQG3JTxHB8YEWHaCpJJeVmBn3LnVQ2HxgrnKtzfbxoGkhvT4yHwupi7Y V3BO5IWyIfeN9eHGcLi8zLCoeqlwe/1mdOQVbhmA1IXVzNinYpLdYDsaxBjpP0Q/hLEJ +clyZf2hkmf8aNuRvqLF8YiLOnLEhR+FQHUqdjd5oVxaa3VRDMSNThBOsqJMWAXW1p4W UUFA== 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:dmarc-filter:arc-authentication-results; bh=8AGKX/NWppS/Uj07kLBvTk0fq4k6Ba+H5Zl++Vt9zeU=; b=jWyANnmKAcM0lC3fwumN+r+mvqqi9C1S5ZhRyg/cpLjYmxtErBr9rkvoA4RNKOldfo xPLOS1GZ9LajnSEKFZ4YxkQ7L/lG32pviR58qbUnSlp85/7ldcIiedhohcb/umWnpAkC XFE6h3/zLWVgAqikiVfATJLv/WIjwvSDMHc3qUpn9N0KDExgBZTOO70ZztIOQB22yyV8 lxU2VnsCJQGJ9MV4BlXJl+nM7wQsUAwZ44CUoQAk09CDbDEmV2GrUM3F5NsqG1X2eapu iIivuetPNxTgPbruu/FT10KLP8yxgmSj3UJro1xRMMzVaUND0SLwFE/a+aavfHefgihf Aedw== 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 z19si403959pgn.46.2018.03.13.10.25.18; Tue, 13 Mar 2018 10:25:33 -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 S932388AbeCMRY2 (ORCPT + 99 others); Tue, 13 Mar 2018 13:24:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:51330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbeCMRY1 (ORCPT ); Tue, 13 Mar 2018 13:24:27 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35B03204EF; Tue, 13 Mar 2018 17:24:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 35B03204EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Tue, 13 Mar 2018 17:24:02 +0000 From: James Hogan To: Florian Fainelli Cc: linux-mips@linux-mips.org, david.daney@cavium.com, paul.burton@mips.com, Ralf Baechle , Kevin Cernekee , Huacai Chen , Jiaxun Yang , Bart Van Assche , Doug Ledford , open list Subject: Re: [PATCH 1/2] MIPS: Allow including mach-generic/dma-coherence.h Message-ID: <20180313172401.GI21642@saruman> References: <1516758010-7641-1-git-send-email-f.fainelli@gmail.com> <1516758010-7641-2-git-send-email-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SdaPbLtAangIkrMZ" Content-Disposition: inline In-Reply-To: <1516758010-7641-2-git-send-email-f.fainelli@gmail.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --SdaPbLtAangIkrMZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2018 at 05:40:09PM -0800, Florian Fainelli wrote: > @@ -71,15 +83,19 @@ static inline void plat_post_dma_flush(struct device = *dev) > #endif > =20 > #ifdef CONFIG_SWIOTLB > +#ifndef phys_to_dma > static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t pad= dr) > { > return paddr; > } > +#endif > =20 > +#ifndef dma_to_phys > static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dad= dr) > { > return daddr; > } > #endif > +#endif /* CONFIG_SWIOTLB */ FYI these were removed in commit ea8c64ace866 ("dma-mapping: move swiotlb arch helpers to a new header"), and are only implemented by platforms which select ARCH_HAS_PHYS_TO_DMA. Cheers James --SdaPbLtAangIkrMZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlqoCTEACgkQbAtpk944 dnr4XQ/+P/hlLOz1TJoV4zY10qxuWZQskRFZREwiQ7TvPMdAlNnf546QZ0IRZebd rFjjiJW3cKPTy/Fdr6lCXxvZRS/KBuIqWec4D0UbPoKTJQQO+lxxzqzuLEET4MAi jdiSqIbRLrCpD1owEU6pcqjbP8dblKwwRowxlORATh8VB0Pxolj7dM6m6NUFQfA2 zAsJLFxVHScqaiPYbM+UzLXPgYTs2TrllDqZZn+68hiq68KEhOaxTTJ6Pn9GkKZy rE2oPPS2gVNczM/snhZ6SCcB3YAngVCzjeHd0EbFSB0a744d2sByQ4bxu/0CWcrX w/Pvnar9FW4zqIdhitc5sXBKajhk4F6jhHscpLedSyXbttHHBflMQVXZOxx2WXzt Zl8cQC5WPioNv1d0GT5bR+MLCpEu4z+hJD3SvJp3jC80K9wtSzDYsv0jN/kMkr9G Eo1nTjUfaaA6MDPkIh5BnY26Gt3UgMDSHmOPqy+Uwuhi45k5y+/k2zairKrNobcv 5uC4dOMcmgN4CMl5hBwfNXgRYfjkLtUD7+9rqYV2LW8vNOI/69v+HtyOSDMQmlS9 qiOZFXNhzp7CodhARzy8nE3mBDgSGFaXIAcBILKkCZXKGpjv1oFzFs0YxTXM4NKU qwHASZP6hpxqMLRmQBNQ3QxnpZumA822ibJeGjuTD7EUUv1MYDg= =l0CC -----END PGP SIGNATURE----- --SdaPbLtAangIkrMZ--