Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4497345ybi; Tue, 30 Jul 2019 03:07:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9ORyjJa+lXB4Ns5+8aDisFBSGO7+eSDg8N9QcIP0d58LFJBAVYfBqSgKUzJ/e0fuqbgKM X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr113232947plq.223.1564481233516; Tue, 30 Jul 2019 03:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564481233; cv=none; d=google.com; s=arc-20160816; b=QiKfHjIuoHuhj22BM7bIJ83Iasi50MyAYwmZB1tfbN6/mwaDVpt8QgHcm0F7wUBH5Q yVKA9hUzbKqT6pdZ9POJF0rxBxHU0YfC2LjHaRNoUdByAGt1we+veMFvgo8K15sdT8wc CxZcCU3AAFU/8uo6klOsxVDZZGoylfO+nLGKG2DLGUSKdJl/btrjJ6KC6GbmeXrVhTBr guK1uw/qRf6wzYZu9EbozUzCQAb6DLG9xqTPo00JU4DOnY8a8q5Cx77VVIsKTMvez0e1 fsE/lca4h+5iBOHRN5ev9Q45dc0XtIIzoyVb7RRwexf7znCgZDl8JkNTxK4uVMCzmp+x RI+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eS5S4KohR3irhWgtUfLvLexYfgHi/N0ae1QbGrg+MN8=; b=k3XWJwOoYwb4Ir11r5UJabxFMUmV5LOnh7XaL5qA8OlWR8Lbv8GgtIe8vJZ4I+vbQm hWw5gshMAcH33qrkFMDxVqQi43MGUVwVSqAfuU5u382LAINehia0gigoXFC0Fs5siAG2 WniFzskjIoGKu3agHYyq6ar5IGsYBR3A722mKDu5EytynHuxOffI/g3zE1VNqAAVrwSI H5zKDIFm5TQWD8sVeZJzoJGJ9WxA9sGhGS8bpcVxFHhFjAvHG9fxpe6s6rntKXcOt6yF jzHibX9vGa8B3ZOHIfLbdaXOsQ4yB/MdyBW186MtahA4QJsthBttFgXmYooIFzmvdSGP SRkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="nv/Uk3iA"; 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 x184si16535820pfb.24.2019.07.30.03.06.58; Tue, 30 Jul 2019 03:07:13 -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="nv/Uk3iA"; 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 S1728372AbfG3Fwh (ORCPT + 99 others); Tue, 30 Jul 2019 01:52:37 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46180 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728204AbfG3Fwd (ORCPT ); Tue, 30 Jul 2019 01:52:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type: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=eS5S4KohR3irhWgtUfLvLexYfgHi/N0ae1QbGrg+MN8=; b=nv/Uk3iAICQEpzysmQOiV3ryQv Gat/o6BVc3xRRsdrPwHSTMM2PMHHx6bU9QSukJm2PAurh78FQ6xcvWGwTwVe/vCRF8XF1u9iIfpFg 3J91GH7pyOv19vBJ2W847BvEtuCSYnPFVfS6gjHMgFai+iGhE5jKeaX7ZjA2gHRqthFtkAG2vCK0m CmT9xHVXxhVaJu95LQDIP1xwx4JE6wMjVjSt4XgFBd1vs92KnozwLz39ze5LkRqyV0DWWRbdvUfKt 37xLUeobKeP/aKEoCv2ZbxpUJT8lqkPzdAow/RTLlaRdVTvcnqTOqUpRZMSLcOSGa7xHRlobRix/L VaoUlOfQ==; Received: from [195.167.85.94] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hsL3l-0001D4-C6; Tue, 30 Jul 2019 05:52:29 +0000 From: Christoph Hellwig To: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jason Gunthorpe , Ben Skeggs , Felix Kuehling Cc: Ralph Campbell , linux-mm@kvack.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/13] mm: remove the unused vma argument to hmm_range_dma_unmap Date: Tue, 30 Jul 2019 08:51:55 +0300 Message-Id: <20190730055203.28467-6-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190730055203.28467-1-hch@lst.de> References: <20190730055203.28467-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- include/linux/hmm.h | 1 - mm/hmm.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/linux/hmm.h b/include/linux/hmm.h index 82265118d94a..59be0aa2476d 100644 --- a/include/linux/hmm.h +++ b/include/linux/hmm.h @@ -422,7 +422,6 @@ long hmm_range_dma_map(struct hmm_range *range, dma_addr_t *daddrs, unsigned int flags); long hmm_range_dma_unmap(struct hmm_range *range, - struct vm_area_struct *vma, struct device *device, dma_addr_t *daddrs, bool dirty); diff --git a/mm/hmm.c b/mm/hmm.c index d66fa29b42e0..3a3852660757 100644 --- a/mm/hmm.c +++ b/mm/hmm.c @@ -1121,7 +1121,6 @@ EXPORT_SYMBOL(hmm_range_dma_map); /** * hmm_range_dma_unmap() - unmap range of that was map with hmm_range_dma_map() * @range: range being unmapped - * @vma: the vma against which the range (optional) * @device: device against which dma map was done * @daddrs: dma address of mapped pages * @dirty: dirty page if it had the write flag set @@ -1133,7 +1132,6 @@ EXPORT_SYMBOL(hmm_range_dma_map); * concurrent mmu notifier or sync_cpu_device_pagetables() to make progress. */ long hmm_range_dma_unmap(struct hmm_range *range, - struct vm_area_struct *vma, struct device *device, dma_addr_t *daddrs, bool dirty) -- 2.20.1