Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1671770imm; Thu, 19 Jul 2018 06:03:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe0pafMO9Zzt8ZcY3GSe83rRLKoXDik6KLTXdxtqduSgP9tfueN5JGrs2YKxzHF+dSq6lPT X-Received: by 2002:a62:4255:: with SMTP id p82-v6mr9567160pfa.238.1532005433267; Thu, 19 Jul 2018 06:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532005433; cv=none; d=google.com; s=arc-20160816; b=dfU6vsNRbz2YibRSpV1f6IIm1MR2h0suYxD4tqhVtGXonyQLlhT5qopPW+EgtoDMqL qbmngnWPjP/DRnVcCH6dz94fXrpdBzJ/XSXApQhafTQHfN2pGloWOFWFoI7xQ0mdMSKP iDbQZaj0BZe8zTEsA935tbjdWTyBHShSqFHlK6UFupEwqkG5W//2b5TBH6UyLh785YSf uRZbs06yLWMgB4Tbl76VQAbAo4r6gCG7lbbDKlLsjdJcn076QRUHvyxhB9hr93vB1GA4 BhHB9hu9SgDDNEC7phtaSxFC1+TVCGS7y48neDvRHHwTzBjsHx155/NAJ7xRF2Qd4xqt y9Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Apb+KY4q2JuG0746oGkS2MbINxLSksxtOzjPzmv7/yA=; b=Yn+N7QdCwHyXclao9qRJ/lMHFEHjNYghxnDKAwc3F7MT1MkS71WG9vbz5VNmCXUnxn CBSwrQL6T8E3V0toMasBqT1ANuxdLE/JWGKUq58AxVu80oYR/95qRvZzF2BqwbOyytaC aNpXFR59Uy8OB03hT2sf9t1alUN/ttNVez/pv9l0B9lAPY2hrmg3iHhnfzFDsACS5T0A kP7Nrh+Lg8j7EbJE1ZOfGjH8kBL8rbAIYXr/Ukt+3Q4GsEzLEQLCvGP7Znn/47QYdg+h cZE9NW8su21B8kqkAmhEMhGyr1hKcOHM6J3G6gp0dkThkeUYsgBnOhMQEXOvTH0/LOij Mt/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Sj1qg92/"; 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 69-v6si5583387pla.288.2018.07.19.06.03.15; Thu, 19 Jul 2018 06:03:53 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Sj1qg92/"; 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 S1731695AbeGSNpn (ORCPT + 99 others); Thu, 19 Jul 2018 09:45:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36906 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730096AbeGSNpn (ORCPT ); Thu, 19 Jul 2018 09:45:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Apb+KY4q2JuG0746oGkS2MbINxLSksxtOzjPzmv7/yA=; b=Sj1qg92/RVm4MxKCjLI3nZlkl /G60zZk6GIWXMbwmlsCnWKQV+5zaDx/+PX6KY7+ORjcRy7cxGmt9exoLxG4EeNWvhy+vdgFRdd8YS ZlJ3vzENtGHahHDxZKhV6PLNvJwLze0WOeicNBnDmN6IssY9LlO8Afh8EkHWDIPG8LUmjs41CscHJ rtkF53Ttym9OKpxs9JQR73tTHUsD584MqmMPTPbJJfCAM3ombqOZWhUnqIV8gkihgbUWPiD+FvTyT NZrnyDn+qaPPzimqt/yiQUZwWAUzy8ddGeShfwHvCzyML1JFx0P3yDa65yOlRoDnfuspgH/XMD8Nm 8XFCu1ehA==; Received: from [96.72.186.57] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fg8Zl-0008Ld-BC; Thu, 19 Jul 2018 13:02:33 +0000 From: Christoph Hellwig To: Jonas Bonn , Stefan Kristiansson , Stafford Horne Cc: openrisc@lists.librecores.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] openrisc: remove the no-op unmap_page and unmap_sg DMA operations Date: Thu, 19 Jul 2018 06:02:30 -0700 Message-Id: <20180719130232.1819-3-hch@lst.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180719130232.1819-1-hch@lst.de> References: <20180719130232.1819-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Christoph Hellwig --- arch/openrisc/kernel/dma.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/arch/openrisc/kernel/dma.c b/arch/openrisc/kernel/dma.c index 47601274abf7..7cadff93d179 100644 --- a/arch/openrisc/kernel/dma.c +++ b/arch/openrisc/kernel/dma.c @@ -171,14 +171,6 @@ or1k_map_page(struct device *dev, struct page *page, return addr; } -static void -or1k_unmap_page(struct device *dev, dma_addr_t dma_handle, - size_t size, enum dma_data_direction dir, - unsigned long attrs) -{ - /* Nothing special to do here... */ -} - static int or1k_map_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, @@ -195,19 +187,6 @@ or1k_map_sg(struct device *dev, struct scatterlist *sg, return nents; } -static void -or1k_unmap_sg(struct device *dev, struct scatterlist *sg, - int nents, enum dma_data_direction dir, - unsigned long attrs) -{ - struct scatterlist *s; - int i; - - for_each_sg(sg, s, nents, i) { - or1k_unmap_page(dev, sg_dma_address(s), sg_dma_len(s), dir, 0); - } -} - static void or1k_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, @@ -226,9 +205,7 @@ const struct dma_map_ops or1k_dma_map_ops = { .alloc = or1k_dma_alloc, .free = or1k_dma_free, .map_page = or1k_map_page, - .unmap_page = or1k_unmap_page, .map_sg = or1k_map_sg, - .unmap_sg = or1k_unmap_sg, .sync_single_for_device = or1k_sync_single_for_device, }; EXPORT_SYMBOL(or1k_dma_map_ops); -- 2.18.0