From patchwork Fri Feb 17 08:46:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 13144430 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 896A5C05027 for ; Fri, 17 Feb 2023 08:47:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DFADC6B0074; Fri, 17 Feb 2023 03:47:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DAB4E6B0075; Fri, 17 Feb 2023 03:47:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC0736B0078; Fri, 17 Feb 2023 03:47:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id BD1CA6B0074 for ; Fri, 17 Feb 2023 03:47:00 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7C68B1615C0 for ; Fri, 17 Feb 2023 08:47:00 +0000 (UTC) X-FDA: 80476153800.07.F4B3B95 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by imf14.hostedemail.com (Postfix) with ESMTP id 89C03100004 for ; Fri, 17 Feb 2023 08:46:57 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of jiapeng.chong@linux.alibaba.com designates 115.124.30.118 as permitted sender) smtp.mailfrom=jiapeng.chong@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676623619; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=lFzkGnJV6rLDDODXEXXfjcs/DxwB4gfc5JtnCsdbrmk=; b=hU91i7KjSAZ788XdC10Vr8VYveRWew3/SA7nMzmg4DFC4tYPjnMxfRtCB7SKeNqK8fkqdn 4gdciy9+Vnx6HlFRgOWOqH1HzXHA+sF5OFUS/FIqNZMCNP8nMLxeKdWTPlzrxdwgXgRcVu VJsyEvRavDTkt5M7vBy+gvRXGuBAinI= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of jiapeng.chong@linux.alibaba.com designates 115.124.30.118 as permitted sender) smtp.mailfrom=jiapeng.chong@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676623619; a=rsa-sha256; cv=none; b=oSS1qdiIVzhYVUT3+UOkAM/8DMOaOVpxs4mX3BUoei8mUJgZ2w4H6hQcrT+MojZ2TCstJo Dewu5HnlWIe89gqx6OBKblFAP2loHpvzUEtqTX+c5OP7aR37o6cduDTYCsEL2JWUXLkaBY rAmqk6j9CIFL0c5RRwEq9FTwLAcKuLA= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;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=5;SR=0;TI=SMTPD_---0Vbs.Evp_1676623608; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Vbs.Evp_1676623608) by smtp.aliyun-inc.com; Fri, 17 Feb 2023 16:46:53 +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 some unused functions Date: Fri, 17 Feb 2023 16:46:47 +0800 Message-Id: <20230217084647.50471-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: toyuaon3xjhu8nw8wd6iu9g3z3mm7xwd X-Rspamd-Queue-Id: 89C03100004 X-HE-Tag: 1676623617-357310 X-HE-Meta: U2FsdGVkX1/oOF4DbWGulnb9Nzzud2Sp4OZ5/vJEtiiM8AfStQlMuHzpDWTY6o7nhpz4A2h+YYvQj4jPlT9YbLuKrXOT6EEd+VE+an36jvhFcJYAWHghgsacTSwWjk7hnl/of7e3s4X/4MyJIzDh6ci7jvOjxavAUcp70rGh22o975gaRTpvDp2r6hgA1/arRiCrwqp3NFUFOCf6b8XohjbxJfx9L1oAOBgn1YNNdAHXN8bO1Y6FRt0lSceko1TLZoZeDvb9gNGA7LMGtvHau124cL6BGZ6TagEsaxAdLwJdxxM6wJbh/Wt2ErzYeuijrHlmg4xrb/WM5J0NhppFO6nSxSikj/rUA0HpZPxpgwLcLqVFEm03HN3Nyo9qvKYx4QPjxDLC/OwmYJAvEHsM+c0y9avIioi9V5RQjutegifEwyvKaLJAY8sghvqRJdM0Vi0uCLhU7WpjxFOweJLTyvTU1AoP8CkF6axbDqHKosaBERAfnMfpQgNtVCEaq8yk7EtaqzEwSHCmFWl8SQA5LSF2LXCMu74ewo/UtQMcR38kxsZhK7qY4HLoXD8wCpndX7LCGQJkLMhz/U+HT+rKi48aufMlt0AFhkUDxX5fM8ERJv863gvZ7SLiaF3Ew+PV0YjJBnHQlSfrQsxRsOX8ag7t5NQR1GJNiQhakFVDVnP+BxEqG78jfrm+CnHbd18o8aUyBPZe/jecna/isOHGsWZaXjSZcn2ENDu0icZHn+g1lzXZgK7W++RTK2/XbrRFGYn+sS8nRhGWTJoSWiWUpH/2/ETNlfPyyMm9dp7WkghbRMKYhrp9Hl0w+fqB9EP7Lbc+l/86QMylQFdNdE329/0IKNuBp4HA/qSC30wRs1SHg376cxa3PeJ+PUOekVoa4OUrFLPyoQhTATdr0Iuh3WchotE4/TKJQk3e/Syt1ITPjPT4tu5ozEIWJlAoFaj9GeRR6YKPxC6j2x4EIWx gqydfolS KTp/fS9SPtrdcBW54mJe7klW8ClcbYmGX7Q3D48tXCyL9ay/Bg7Kt30xWeAXl0zAvw97pg7PNK7NYy2/9uddflca6QJYckN6YerZbX1uvainPd+B6uKBnRQ9nhMA3VgTS8ml9uXzpHNHGdfbe3a0Ar//0L1V1lSpkkByOzzDObQzmrCBhUdPyuERfhRzX+54YFYKVDDvn2VMX30g/3QATGfwl6cMh2MaL85FXtR6ZKS1VYuIJYPpLuCGwX9SBpmf6dGwYk2oZuNw6UH4FqMNzCqbPAF6VzS6RyKlAnbBBfeFg0/JSwIPec23FjA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: These functions are defined in the maple_tree.c file, but not called elsewhere, so delete these unused functions. lib/maple_tree.c:331:21: warning: unused function 'mte_set_full'. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4105 Signed-off-by: Jiapeng Chong --- lib/maple_tree.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 646297cae5d1..f89b61e37d93 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -328,21 +328,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) -{ - return (void *)((unsigned long)node & ~MAPLE_ENODE_NULL); -} - -static inline void *mte_clear_full(const struct maple_enode *node) -{ - return (void *)((unsigned long)node | MAPLE_ENODE_NULL); -} - -static inline bool mte_has_null(const struct maple_enode *node) -{ - return (unsigned long)node & MAPLE_ENODE_NULL; -} - static inline bool ma_is_root(struct maple_node *node) { return ((unsigned long)node->parent & MA_ROOT_PARENT);