From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: [PATCH 35/44] x86: remove arch specific dma_supported implementation Date: Thu, 8 Jun 2017 15:26:00 +0200 Message-ID: <20170608132609.32662-36-hch@lst.de> References: <20170608132609.32662-1-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dIxUN-0005Vi-5f for xen-devel@lists.xenproject.org; Thu, 08 Jun 2017 13:28:39 +0000 In-Reply-To: <20170608132609.32662-1-hch@lst.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: x86@kernel.org, linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, iommu@lists.linux-foundation.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org List-Id: xen-devel@lists.xenproject.org QW5kIGluc3RlYWQgd2lyZSBpdCB1cCBhcyBtZXRob2QgZm9yIGFsbCB0aGUgZG1hX21hcF9vcHMg aW5zdGFuY2VzLgoKTm90ZSB0aGF0IHRoaXMgYWxzbyBtZWFucyB0aGUgYXJjaCBzcGVjaWZpYyBj aGVjayB3aWxsIGJlIGZ1bGx5IGluc3RlYWQKb2YgcGFydGlhbGx5IGFwcGxpZWQgaW4gdGhlIEFN RCBpb21tdSBkcml2ZXIuCgpTaWduZWQtb2ZmLWJ5OiBDaHJp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