Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7736023rwn; Wed, 14 Sep 2022 03:47:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6n2v6G/gk2+wMAIKynockXjEr5zuCRjaoXuU83s8dR36rN/DFEcOpY5z4G5b+zch3S5Y5+ X-Received: by 2002:a63:2c8b:0:b0:41c:5f9e:a1d6 with SMTP id s133-20020a632c8b000000b0041c5f9ea1d6mr30883337pgs.601.1663152460779; Wed, 14 Sep 2022 03:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663152460; cv=none; d=google.com; s=arc-20160816; b=dNy+f7ulJjo6pNgZfIhGjqe8/Ph9BhyUFobk8+rNSQgof23Cy9DT1DqTT3ZXWWy0QJ alcUolqXzOd3hRtwE27WwHNKVlfmsDrSnjNuxcXhT26N+A+PcZsm3dP57nElfOsSPWGW ty7VGGB3Kp7cUNBWlrmL9px+evHvhNRLNuTxzjAlDMEydn1sHpuuWHTfkTSxMjB+J8Ux gLt8Muib3xsD0TjqVi7j2fbCV7PWJ09o6dxM0TJnwnEHK5CU9nJl1lufbD8fiaWxqO65 fZs9E3i7n98d8XzEoxiYKzfJqkKeQvqZEX7BkUWdzmfmooheDg/GFT838CvhIaNNcLQ/ oRZg== 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=tEnQYJkZGoHaIP/g74Y/mzAPzq/E7uWSjuEeg7AJ6x0=; b=AUYQT5OE4bhBiIlAD2dGIn7ojwbYOf/5ZXiPGMcIxN+UjuPwg0vLIwEOWdiWvKeQvO EOowyKvzXMp5VJ5J3/yxEFR0JNOHjU4lKMy3+u/PMEsc6qQccCnG5u5+11Buy5+IkaRV PlizZv4z2eSc0d9nCMhyb7PQI2yRVCf1cqW6SnoyB6CAyS1L3XGVZmxbvE2YpZwZkaNQ o5MxOAcjMBgskztjtDMo5lBB20HzKSRbKZtH42lUVIqzNLpcmC3mdzaEe+Twd/5x5i2Z DIbOHS4oz33dmZkllZ6Ox9lJKt8zjC2hxrbXs1X9cRwH5ZkqwZbC9LCd3eDYuRG1Iif6 jQNA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k69-20020a638448000000b0043041b4e287si14533148pgd.764.2022.09.14.03.47.29; Wed, 14 Sep 2022 03:47:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiINKSt (ORCPT + 99 others); Wed, 14 Sep 2022 06:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiINKSs (ORCPT ); Wed, 14 Sep 2022 06:18:48 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BE777EB0 for ; Wed, 14 Sep 2022 03:18:46 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VPn2tTg_1663150711; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPn2tTg_1663150711) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 18:18:44 +0800 From: Jiapeng Chong To: Liam.Howlett@oracle.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] Maple Tree: Remove unused functions mte_set_full and mte_clear_full Date: Wed, 14 Sep 2022 18:18:29 +0800 Message-Id: <20220914101829.82000-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=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 mte_set_full and mte_clear_full are defined in the maple_tree.c file, but not called elsewhere, so delete these unused function. lib/maple_tree.c:330:20: warning: unused function 'mte_set_full'. lib/maple_tree.c:335:20: warning: unused function 'mte_clear_full'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2156 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- lib/maple_tree.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index e1743803c851..e31b5b1f71d7 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -327,16 +327,6 @@ static inline void *mte_safe_root(const struct maple_enode *node) return (void *)((unsigned long)node & ~MAPLE_ROOT_NODE); } -static inline void mte_set_full(const struct maple_enode *node) -{ - node = (void *)((unsigned long)node & ~MAPLE_ENODE_NULL); -} - -static inline void mte_clear_full(const struct maple_enode *node) -{ - node = (void *)((unsigned long)node | MAPLE_ENODE_NULL); -} - static inline bool ma_is_root(struct maple_node *node) { return ((unsigned long)node->parent & MA_ROOT_PARENT); -- 2.20.1.7.g153144c