Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7110367rwd; Tue, 6 Jun 2023 06:34:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xWJeHiphYmKu1pNmqJoofb/7MnLE3dgjdGAftUxMyiuQiRwA9Ihz5UNNmqXn+NPY3FbaH X-Received: by 2002:ac8:5c16:0:b0:3f8:4e5:acb1 with SMTP id i22-20020ac85c16000000b003f804e5acb1mr2279751qti.29.1686058439489; Tue, 06 Jun 2023 06:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686058439; cv=none; d=google.com; s=arc-20160816; b=QQTirw+9HPrY6GNwWvc0c7B7Af+yHKdoj4b+xkw53laZvz6xfbFmR5Gj0PYJAxOyNo 0VWX5NZTBYvuNlIfd8dMRrFT73kg/7aXGypGQzqfawo77ZCALONA79SVOk0pQNDyXppy OiwlPGxGHOn9GcdEQt+YbNTlDMzR6gr5OBKmVx7+uXwhJF6zBX+BbdpKcnlg+uNjLT+7 dgURY34eLSAKzu61cp9pr1eUtVFpcoUioSPulaMIZDhHzD/54WAUNC+F5R8IzVaWt1Fb RhyKLCuphuriB3TsiuFFNxhtWV9Edbm873Xmfnsfs2ncurifpis+hKDebzkVhbWfDzQK Mfkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=56jZNWYEmS6CeEa5uhhQJMkr1KXMRt0pFAASz2FUJFo=; b=D4p3h7I0On7HzXygCa7l9rtNkla+fa51feCsY6z9ecfplt73X6zYXgHIEJ9LhURClC yd89jBBVKsfXLHNTkCH+xcH9BzJnaUbN6VInJ2EkSguv+nn4ur1uDr9L8oKvp+xd+tvY waadVgIiuhcKtWJ6BKb3Bi81zlkZB76J/NkGWERbKvP2BvKaAaIgD14yzgqpRD85ZuQ5 lYTJpNhSsejmsSem1zwNXNryuXFqR6ks9sVBwBfwoQBpFzN4rzxV9oKAh4Bkfi5RW9Hs yEuBjKaOP75MltyoELdqUES5d4CEbM8QEfGnmUQLIp+dg8t9hJBHb7V69q1+vUxb3fUA ooiA== 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 y11-20020ac85f4b000000b003ef6624d0edsi5868543qta.647.2023.06.06.06.33.39; Tue, 06 Jun 2023 06:33:59 -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 S238034AbjFFNIZ (ORCPT + 99 others); Tue, 6 Jun 2023 09:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237998AbjFFNIT (ORCPT ); Tue, 6 Jun 2023 09:08:19 -0400 Received: from frasgout13.his.huawei.com (unknown [14.137.139.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6631610E9 for ; Tue, 6 Jun 2023 06:08:01 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.18.147.229]) by frasgout13.his.huawei.com (SkyGuard) with ESMTP id 4Qb92Y1PXrz9xvjF for ; Tue, 6 Jun 2023 20:36:37 +0800 (CST) Received: from A2101119013HW2.china.huawei.com (unknown [10.45.145.135]) by APP1 (Coremail) with SMTP id LxC2BwDHLemsKn9kjDEWAw--.4009S2; Tue, 06 Jun 2023 13:46:44 +0100 (CET) From: Petr Tesarik To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux.dev (open list:DMA MAPPING HELPERS), linux-kernel@vger.kernel.org (open list) Cc: Roberto Sassu , Kefeng Wang , petr@tesarici.cz Subject: [PATCH v1 1/1] swiotlb: remove unused field "used" from struct io_tlb_mem Date: Tue, 6 Jun 2023 14:46:25 +0200 Message-Id: <20230606124625.175-1-petrtesarik@huaweicloud.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: LxC2BwDHLemsKn9kjDEWAw--.4009S2 X-Coremail-Antispam: 1UD129KBjvdXoWruw1DWF1rZrW8GFy5Ar48Crg_yoWktrc_Za 1xtr4Uu3yrJr4xXw1xtF4ayF4Sgw18KF13uF93JrZrJ3WUZFZ5u3Z2gF9FvrZxGFs3CrZx XFnxWr97CF1UKjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7kYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267 AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAKzI0EY4vE52x082I5MxAIw28IcxkI 7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxV Cjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY 6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6x AIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv 6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU2K9aDUUUU X-CM-SenderInfo: hshw23xhvd2x3n6k3tpzhluzxrxghudrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, PDS_RDNS_DYNAMIC_FP,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,RDNS_DYNAMIC, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Petr Tesarik Commit 20347fca71a3 ("swiotlb: split up the global swiotlb lock") moved the number of used slots to struct io_tlb_area, but it did not remove the field from struct io_tlb_mem. Signed-off-by: Petr Tesarik --- include/linux/swiotlb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 7af2673b47ba..4e52cd5e0bdc 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -76,7 +76,6 @@ dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys, * @nslabs: The number of IO TLB blocks (in groups of 64) between @start and * @end. For default swiotlb, this is command line adjustable via * setup_io_tlb_npages. - * @used: The number of used IO TLB block. * @list: The free list describing the number of free entries available * from each index. * @orig_addr: The original address corresponding to a mapped entry. @@ -98,7 +97,6 @@ struct io_tlb_mem { phys_addr_t end; void *vaddr; unsigned long nslabs; - unsigned long used; struct dentry *debugfs; bool late_alloc; bool force_bounce; -- 2.25.1