Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp301505rdf; Fri, 3 Nov 2023 00:31:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHgbNhRjzoX3FQcVqnPY6PdILmmiAm45lxDNrGPdfFuNhTPCyGkx90DC+KNwtQxh5BVxtz X-Received: by 2002:a05:6358:9144:b0:168:de6a:d653 with SMTP id r4-20020a056358914400b00168de6ad653mr24884530rwr.21.1698996676023; Fri, 03 Nov 2023 00:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698996675; cv=none; d=google.com; s=arc-20160816; b=nbhCi/01qg0YeQsBN+4GxqrO/qaSk54muTA04QDJptRxDskLFjfuh6medt0MbBcfmo /e/GDaPSI5c7n5h+RCSDGEWNphCyvWeOcVM/SmmgkxK7fB9DFi8ZK5rBbHICkYwQbrNG PAtu9mwTCNi7IV3HS4D7foANzpyRMhxDR09o0ePXLP2tTqREOvK9VtHKplHV+Igkifo0 DltcKFqbL4qYXP3nXm2mdHkJJjVCSxVT7NaaQIStreJ8IGy15rd1WA+TeFZDqcg7aPT/ 1cHExH87gv+GWsD3TODTJpPrsTr0OcS/aaAFnt3tuCmLVxb88aVAeDJvibyRUMKQeQfa j9hA== 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=UnFDHrca5Q9c6bLo/IjaWn9sQyANZR76PEcMGSOr7Sk=; fh=cZtyEWTgpzFVXbOOld0RkBK1pUY4vSfNQezocmSHgjY=; b=heDi6D3OofsGXJpRxF8dovZdBIHC9E5zsvcY52WIT9W6uTcD3GLon5gEOsYzsqIbyl EL6L8dxt5kPoI84LxQ5Ssd0v7aDqbIQBz+8pN29lSUTPhst3SgpGOCtjlndq0jsdavTE jwT4AeRmC5qK2lKDAyJGWkv9aY9hUHHm+YZCUSAIjF44b+UQLMaf3Z8zZXWpaYEcaxg7 8P0MJMN+jCX6ioXGugpfPcir0B0LerSgug/F42YLYedO1OBHtFBtWfLB6kZWVnSKQFzK S8AkiIpNuq2RilFTu2m/wIehsL1kTOmgYKDeXMya9Fdh0PzhQntBvyPNfMiKlQpzVnbZ qW/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bg10-20020a056a02010a00b005b7c45c3cabsi1067632pgb.857.2023.11.03.00.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 00:31:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 918538083E69; Fri, 3 Nov 2023 00:31:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346172AbjKCHbD (ORCPT + 99 others); Fri, 3 Nov 2023 03:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbjKCHbB (ORCPT ); Fri, 3 Nov 2023 03:31:01 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2246CD4E; Fri, 3 Nov 2023 00:30:53 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VvYSqY0_1698996640; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VvYSqY0_1698996640) by smtp.aliyun-inc.com; Fri, 03 Nov 2023 15:30:49 +0800 From: Jiapeng Chong To: chandan.babu@oracle.com Cc: djwong@kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] xfs: Remove unused function Date: Fri, 3 Nov 2023 15:30:40 +0800 Message-Id: <20231103073040.649-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 03 Nov 2023 00:31:13 -0700 (PDT) The function are defined in the bitmap.c file, but not called elsewhere, so delete the unused function. fs/xfs/scrub/bitmap.c:55:1: warning: unused function 'xbitmap_tree_iter_next'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7137 Signed-off-by: Jiapeng Chong --- fs/xfs/scrub/bitmap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/xfs/scrub/bitmap.c b/fs/xfs/scrub/bitmap.c index e0c89a9a0ca0..ba4b18e40faa 100644 --- a/fs/xfs/scrub/bitmap.c +++ b/fs/xfs/scrub/bitmap.c @@ -48,10 +48,6 @@ static inline struct xbitmap_node * xbitmap_tree_iter_first(struct rb_root_cached *root, uint64_t start, uint64_t last); -static inline struct xbitmap_node * -xbitmap_tree_iter_next(struct xbitmap_node *node, uint64_t start, - uint64_t last); - INTERVAL_TREE_DEFINE(struct xbitmap_node, bn_rbnode, uint64_t, __bn_subtree_last, START, LAST, static inline, xbitmap_tree) -- 2.20.1.7.g153144c