Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1007853rdh; Fri, 27 Oct 2023 01:50:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/97rg6nieLt49QwkzUqT9qvoJQnjES+hBGNEtoLSJ4V21EKHQzOzg6UmWcmZQFJROCFyb X-Received: by 2002:a25:d7cb:0:b0:da0:4aaa:b480 with SMTP id o194-20020a25d7cb000000b00da04aaab480mr2196787ybg.19.1698396641954; Fri, 27 Oct 2023 01:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698396641; cv=none; d=google.com; s=arc-20160816; b=njrK7H1UkHvmXyYRyWo2ugbMH90ld0VHGTZGQnwtVkBhCi2oYJjQ8aWSjuPlLUdLOe JbWms/AUJNMKRLx3l7i2ORkgz+03HdRLTPOxSPNlaeBEFBZ4zLfX1MA8LsfGenbThZqg 0H+WxObLijjw2mzRPWu4T5OqjZMZ76n1us6EAeITlRAjweskGJ+S03EkAdkbpIFpVt6E CNUHzD3azFBWn6UPv3rJwNHJt7pOOplyfCoA+QyuZDtB3o2Cdlb/mqwZ5BwWGA8ZgzDI Vw145/SSkZSVgVnH3weA9uKoD9fAS1+ZBsaJ3H3QhQG4h5ZpoS17aBmh0PAP5l4FQOBa xgsQ== 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=BitLEcF23CKSuXnG8afnIhBHF+u8FiLEHAEbYdEcF14=; fh=88qPWDBFeiFdWL+kCjCq5pMh/xXXlNsNuTH7BmU2R4A=; b=lKTIAuGOAdYySyz72LllVg2Scp6UxSAkQ2fex30M6kX+7vGZs/I15jyXiJsalspvQ0 3Ub+eCdHOoyeMkp88d0Nx9XfEDEWjP2+6GNZ8367jQ4xHRboBPExeqD9+O8l24FM3ekO SwP4GSICelLC4LM0IpMJ8tSvcXwRvPatEF86WQIZwAuvXncnmY0O/2iT0MkHmxiy76nr tdLLvTRh3Hscv61FPOeBM7ypc3wWe93DpexU1PKvFY18NKjvEt2DfVgAgrmd2tRX6nyd WqmW8ZwrOtfksdRncpKDzCPma5cahtTxr74ns9Ck9AEJg+j9HqxZoPQy68c9ud5JC9si WcXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 10-20020a25000a000000b00da0579df1cfsi1956286yba.281.2023.10.27.01.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:50:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id F1E738076156; Fri, 27 Oct 2023 01:50:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345526AbjJ0IuF (ORCPT + 99 others); Fri, 27 Oct 2023 04:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234963AbjJ0IuE (ORCPT ); Fri, 27 Oct 2023 04:50:04 -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 17B05BD for ; Fri, 27 Oct 2023 01:50:00 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R811e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vv-KCG0_1698396586; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Vv-KCG0_1698396586) by smtp.aliyun-inc.com; Fri, 27 Oct 2023 16:49:55 +0800 From: Jiapeng Chong To: Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] maple_tree: Remove unused function Date: Fri, 27 Oct 2023 16:49:44 +0800 Message-Id: <20231027084944.24888-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.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 01:50:16 -0700 (PDT) The function are defined in the maple_tree.c file, but not called elsewhere, so delete the unused function. lib/maple_tree.c:689:29: warning: unused function 'mas_pivot'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7064 Signed-off-by: Jiapeng Chong --- lib/maple_tree.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index bb24d84a4922..cf889aaa0011 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -679,35 +679,6 @@ static inline unsigned long *ma_gaps(struct maple_node *node, return NULL; } -/* - * mas_pivot() - Get the pivot at @piv of the maple encoded node. - * @mas: The maple state. - * @piv: The pivot. - * - * Return: the pivot at @piv of @mn. - */ -static inline unsigned long mas_pivot(struct ma_state *mas, unsigned char piv) -{ - struct maple_node *node = mas_mn(mas); - enum maple_type type = mte_node_type(mas->node); - - if (MAS_WARN_ON(mas, piv >= mt_pivots[type])) { - mas_set_err(mas, -EIO); - return 0; - } - - switch (type) { - case maple_arange_64: - return node->ma64.pivot[piv]; - case maple_range_64: - case maple_leaf_64: - return node->mr64.pivot[piv]; - case maple_dense: - return 0; - } - return 0; -} - /* * mas_safe_pivot() - get the pivot at @piv or mas->max. * @mas: The maple state -- 2.20.1.7.g153144c