Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2958906ybl; Thu, 29 Aug 2019 15:49:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXZGr1LSGl7JDxGNx6rcOf5VNaQqKJYQ9gvifiqZwgcSEavZ5vcYAZq3nHIu8kPImNc8gb X-Received: by 2002:a63:e948:: with SMTP id q8mr10147536pgj.93.1567118979002; Thu, 29 Aug 2019 15:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567118978; cv=none; d=google.com; s=arc-20160816; b=WJL3K/riQI5TpWRl2jXPLcB333vnPuOlBfBrs1uPvBDuMCAtHObNnmUhQBCTid0Vc9 B4Er16gzpnW936vm2LHb4m2o8Sj2+BcXPSByq+JUvoxvGGqGDQPxJc3HQt8xAioeInUn 8lNEsWaNXsGOPiRLdZtncKoNVNGnktSkZ8P5AwH4U5upNdNaDAQiYXxdFx9xCSEOpWPW Boumye9QHbW2B9FxP5quhR+EN5UcqaTRmbx03wQHFErWCo9veeq5vT4yijWvtr0BZJw+ KvtI/FCfamLH51dXHlFDwkLj3Xp0pF6Gr8+NUvQBsV+DaumSOV2ypVf6+mg28QF/HSJu n2Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Pbn91MCW6hQk8DNyqW10pOXA4c5cBlvmujRocfzm7QE=; b=T6xTfMGlKBgLXBOohiD3jiHZaI94K2hnijEVBn9nEcCPspplh6NMXPp3C9GjVxZQfu MC40sFCKCTAlJpVW+rC3hdx/bq7ryG7dkJw1zXll/V0iQp5tXZOkHkvgksFT8FSyavL2 /SEqM+/rv09Fu17J/inPe9UUD8Db0btn/cpI3Cz6hQ584q1gSxVwCGmyBVMjxf7qQUOC 9rMgMDHWVo962QICVQsHbIRKV19+iLa0cg35obGMjToFUKUskmv4XgoerYWFJE1UJxBs rZVREhPhR22bNPNbEWxFedmhNzlKi88MZIoKBQy72UcTpi/NefUx0r+ygoNUOGIZ29Pd CRkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wnkNFIIv; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h24si4355586pfq.84.2019.08.29.15.49.23; Thu, 29 Aug 2019 15:49:38 -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=@kernel.org header.s=default header.b=wnkNFIIv; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbfH2Wse (ORCPT + 99 others); Thu, 29 Aug 2019 18:48:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:60942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727686AbfH2Wse (ORCPT ); Thu, 29 Aug 2019 18:48:34 -0400 Received: from localhost (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (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 D7AD72189D; Thu, 29 Aug 2019 22:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567118913; bh=ZGRvcaq/a8pJd+ywMIWiJwEFzqT0vsYzNvrp/+e8HkA=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=wnkNFIIv+4LJV93bbLL55j9Hxy9G2m3QtVn4rgC4iUTgVBDhTaNaO2ubx36Anoprj /xtSvbGDC2SgW8e7dEuJQF71Y045fGovXpA3c1vi7wuauPYe1W8Ib/cgSSGlSTK4Qd G4oXD/PaKu6vmQypn5BNG22/goyVDTLPSBwEAb58= Date: Thu, 29 Aug 2019 15:48:32 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Christoph Hellwig cc: Stefano Stabellini , Konrad Rzeszutek Wilk , x86@kernel.org, linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Will Deacon Subject: Re: [PATCH 11/11] arm64: use asm-generic/dma-mapping.h In-Reply-To: <20190826121944.515-12-hch@lst.de> Message-ID: References: <20190826121944.515-1-hch@lst.de> <20190826121944.515-12-hch@lst.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Aug 2019, Christoph Hellwig wrote: > Now that the Xen special cases are gone nothing worth mentioning is > left in the arm64 file, so switch to use the > asm-generic version instead. > > Signed-off-by: Christoph Hellwig > Acked-by: Will Deacon Reviewed-by: Stefano Stabellini > --- > arch/arm64/include/asm/Kbuild | 1 + > arch/arm64/include/asm/dma-mapping.h | 22 ---------------------- > arch/arm64/mm/dma-mapping.c | 1 + > 3 files changed, 2 insertions(+), 22 deletions(-) > delete mode 100644 arch/arm64/include/asm/dma-mapping.h > > diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild > index c52e151afab0..98a5405c8558 100644 > --- a/arch/arm64/include/asm/Kbuild > +++ b/arch/arm64/include/asm/Kbuild > @@ -4,6 +4,7 @@ generic-y += delay.h > generic-y += div64.h > generic-y += dma.h > generic-y += dma-contiguous.h > +generic-y += dma-mapping.h > generic-y += early_ioremap.h > generic-y += emergency-restart.h > generic-y += hw_irq.h > diff --git a/arch/arm64/include/asm/dma-mapping.h b/arch/arm64/include/asm/dma-mapping.h > deleted file mode 100644 > index 67243255a858..000000000000 > --- a/arch/arm64/include/asm/dma-mapping.h > +++ /dev/null > @@ -1,22 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0-only */ > -/* > - * Copyright (C) 2012 ARM Ltd. > - */ > -#ifndef __ASM_DMA_MAPPING_H > -#define __ASM_DMA_MAPPING_H > - > -#ifdef __KERNEL__ > - > -#include > -#include > - > -#include > -#include > - > -static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) > -{ > - return NULL; > -} > - > -#endif /* __KERNEL__ */ > -#endif /* __ASM_DMA_MAPPING_H */ > diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c > index 4b244a037349..6578abcfbbc7 100644 > --- a/arch/arm64/mm/dma-mapping.c > +++ b/arch/arm64/mm/dma-mapping.c > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > #include > > #include > -- > 2.20.1 >