Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp744858imw; Mon, 4 Jul 2022 19:26:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v1H67gdrqhnJyWOcpUYUqgY7exHNBzTTNe/LpvJIzKTNT10/GaRcAayu5EOYUIaiBBoHYe X-Received: by 2002:a17:907:168f:b0:726:2bd0:1091 with SMTP id hc15-20020a170907168f00b007262bd01091mr31163160ejc.137.1656988013979; Mon, 04 Jul 2022 19:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656988013; cv=none; d=google.com; s=arc-20160816; b=XqA1dncYy2lNIWnkdGz369u4sfzJ7LaY0O/sv6NVJvXWWzG8sNxHph63RvRQkh2YC0 cHdIFHrnsxnb5aFM+LzJG6HOxmEsg/CNmy4qelF6WIFobbMbZ6tl8K6iZkxPmgPgV3yW KPlnZ9GNsuYMxHYKGgSza2LLJK8ChDNtcAEeJEjZ3FuAp6yNzzrQWlAxeFXzXqeAce3g RS0d8TSdsdlBpN+wb0rOwoZ9RMiQm6lZ6GziKmlP1l3BQ/Q8SrzMtL0kITsjoBvb4jlo 67ZgOf7Lm7vBRTN6amtupBeYOCTkvhMMCOUjSAU+nKlFgzzNLQ3gbSLEAlKUUOsxT2zM PWdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:abuse-reports-to:tuid:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=klsRdhSiyAU2BiQ/70h6IxBkFYdwM5XHC9YU6Xdcg3Q=; b=VazIUzD8RY2ewU211lVRQIA/+lFlXMbTOetJvEJR1waLmQTUd+GeBK3Irzuvseh2hh 8VcKPVE6FGur326HurxfyQqItgPzwbtcTwDo9aX8JHI09YfU+UhVImO8teHxzkuRY9zn DDd4KcbqEnrAdzaZIC8gLLXtZMhdWxfRnH+ZkquOOL/xZiZXJgXj3PPRnnn58DC0wTH3 rdhi8qiTY9NCN3OJ22eIPZ/AXy8PvnGMAtp9ApBxAef14823i8F/uLTCCZE6UQh3ueSM 7fT3R+obwZlWb0dH+hIR5JSdTHSE7l3Ge18pB9mdADWSy285UxxRuah+AM/dKNyz6v2b SY8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb17-20020a170907161100b00726ecc7db04si19222795ejc.766.2022.07.04.19.26.29; Mon, 04 Jul 2022 19:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233565AbiGEBsI (ORCPT + 99 others); Mon, 4 Jul 2022 21:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbiGEBsH (ORCPT ); Mon, 4 Jul 2022 21:48:07 -0400 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91FA0101DB; Mon, 4 Jul 2022 18:48:04 -0700 (PDT) Received: from ([60.208.111.195]) by ssh248.corpemail.net ((D)) with ASMTP (SSL) id ZYA00152; Tue, 05 Jul 2022 09:47:52 +0800 Received: from localhost.localdomain (10.200.104.82) by jtjnmail201611.home.langchao.com (10.100.2.11) with Microsoft SMTP Server id 15.1.2507.9; Tue, 5 Jul 2022 09:47:53 +0800 From: Deming Wang To: CC: , , , Deming Wang Subject: [PATCH] vfio/spapr_tce: Remove the unused parameters container Date: Sat, 2 Jul 2022 02:46:13 -0400 Message-ID: <20220702064613.5293-1-wangdeming@inspur.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.200.104.82] tUid: 2022705094752f058e025d35fdeb4e1095acbc5a59066 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The parameter of container has been unused for tce_iommu_unuse_page. So, we should delete it. Signed-off-by: Deming Wang --- drivers/vfio/vfio_iommu_spapr_tce.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c index 708a95e61831..ea3d17a94e94 100644 --- a/drivers/vfio/vfio_iommu_spapr_tce.c +++ b/drivers/vfio/vfio_iommu_spapr_tce.c @@ -378,8 +378,7 @@ static void tce_iommu_release(void *iommu_data) kfree(container); } -static void tce_iommu_unuse_page(struct tce_container *container, - unsigned long hpa) +static void tce_iommu_unuse_page(unsigned long hpa) { struct page *page; @@ -474,7 +473,7 @@ static int tce_iommu_clear(struct tce_container *container, continue; } - tce_iommu_unuse_page(container, oldhpa); + tce_iommu_unuse_page(oldhpa); } iommu_tce_kill(tbl, firstentry, pages); @@ -524,7 +523,7 @@ static long tce_iommu_build(struct tce_container *container, ret = iommu_tce_xchg_no_kill(container->mm, tbl, entry + i, &hpa, &dirtmp); if (ret) { - tce_iommu_unuse_page(container, hpa); + tce_iommu_unuse_page(hpa); pr_err("iommu_tce: %s failed ioba=%lx, tce=%lx, ret=%ld\n", __func__, entry << tbl->it_page_shift, tce, ret); @@ -532,7 +531,7 @@ static long tce_iommu_build(struct tce_container *container, } if (dirtmp != DMA_NONE) - tce_iommu_unuse_page(container, hpa); + tce_iommu_unuse_page(hpa); tce += IOMMU_PAGE_SIZE(tbl); } -- 2.27.0