Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5206497rwj; Tue, 20 Dec 2022 22:37:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXuiRbz41vsi9N3paWPbPr9HzuDDL3vSDvGUQtKmy9IZJMputWM9lhQI92LkVKmEye9atIek X-Received: by 2002:aa7:d146:0:b0:46f:7453:a99d with SMTP id r6-20020aa7d146000000b0046f7453a99dmr3685962edo.6.1671604679608; Tue, 20 Dec 2022 22:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671604679; cv=none; d=google.com; s=arc-20160816; b=UwMY5GQhfWFG+0JugebyzhiKTUhIjJh5+LKv+6Tcg9Wt6EbbtSgrWaDVsAzGT9OVwg xHnvv7tztpaY6HT3eSxl484pyPvrSlFaBzecEd2IljwaaafzxheqTbyVRLBNoa3RoC8f VqV9bn/ubUiPh5bl868uHnDxOusjTyeiekgPiHAWX9LoX+BckKYUdQ1q9q5gP1XNhD7A Ov6ZMAd7rRKi7HnrK6mrYqhlK40R8g5ihEh6+kYvMKrpGl3nH4bArZmybOXtvx2zRZdB cWaawBipLf2BSyYiykUe4fUq2hzs4eLwLhFpMX7NsFk4AZQwFligtBDX/ElhQxOWrdGp cLfg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aHRqJFCqqiUbAcLl4rJqQJzKFG6tPNSYjirqr984MSA=; b=QDuVbHev5zFIGrt0mOpWda7IkamrWUcSVrbxMHPfwPLd+M6NRzwxV6zhi9ThX9J2oU UsS1+qM8zXZYmCH8j66i0ZOAjhthWKj9yA7VFqwFzjnx5x1xV6QOc4eURBu53yIwIAlN 1tS00RuvmnNCi3ciD3oifiUV+3HXjBaY6qTb3k2BGVzSMqrTrA3/D3lUamKhStzELR9X GJrGcHXS4K7K6aW8S6c51cC0PLsbS9iRy9MVUqje7XmIF7HvWSvAD50f2W++dz4OfRRX lUjdf3u+A1jVttdj0pKCH/gRV2BB7KahaoXU7EDnx4VMPJNZDEXLY1iW9sogb4MjWTBC i5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="O8AhDZ/k"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402270800b0045d46f28533si14125577edd.377.2022.12.20.22.37.43; Tue, 20 Dec 2022 22:37:59 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="O8AhDZ/k"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234409AbiLUGCF (ORCPT + 69 others); Wed, 21 Dec 2022 01:02:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234485AbiLUGBx (ORCPT ); Wed, 21 Dec 2022 01:01:53 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C31C14D05 for ; Tue, 20 Dec 2022 22:01:38 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 7so4710509pga.1 for ; Tue, 20 Dec 2022 22:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aHRqJFCqqiUbAcLl4rJqQJzKFG6tPNSYjirqr984MSA=; b=O8AhDZ/k7Q9w4CuljbyvCn754AYl8IRAr+sz1YmGdipQW5IseqgATF+4k0SEDPRQ6f wepmg+rOixnKd/oqWfCRB78BNSf7HEMx1C13UfIuxxqc/OCZBFofhsQIEcKhs3kEaZ3P W9oj23ziWiUfbblsOtbCOspq01s6mUeR+hMvUJnI4IuHID8HXaZWFYxC5FaYFvktYfCZ EbAu+aX680QqWMqq9G/GNwTX+yK4bmYhph2fRkEVjA33PzI35wYhgI1rcoVryEAkW0ij WtfRkRjorH5TuDvAX5X44/3yXc6eloM9ig1e/aI8BG67m9AU4vYSVcfxTqDTz1fj5E8b 1rmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aHRqJFCqqiUbAcLl4rJqQJzKFG6tPNSYjirqr984MSA=; b=tX1bwy1fPf1P0mr6pWZjci0lH5vzkRvnsx5BZPRSC4C7R2cH1+CIgWl2OoqqW8uLts W2ZFlBek7qp4NLN1MiyQPJxfdUMPB+kpbdPyrqd1MZyxq5pgCenwAVI3sjHusjOfEkim 5+hNL4V7JzEVpZ5qGEiTzROuJHL2tpkJ4waRObqOg4dLeW8tuaY6h9ve0EgY3Phxg8Ef /RZ8SmcXPdYiEHIA69XQUowCOWCbBJXD9WzkpBjrjYwTBXxf5d3j40ZnPud0jVTVNxU0 ndLE8U+/I4YgRNJ45ShCeLUQ/7ohdW1fICcnNLDRSwBxbwcoE5qjoN8ykRfY016va9ym 3i7w== X-Gm-Message-State: AFqh2kp5WdJ4whpicP5ikXAH/1pAtjZbMo5CSVCQNXohOlbJJbo/p2Dj ZlIzraZqjPTu3QgPg8JBndM= X-Received: by 2002:a62:ab16:0:b0:56b:d68d:7136 with SMTP id p22-20020a62ab16000000b0056bd68d7136mr1120872pff.11.1671602497635; Tue, 20 Dec 2022 22:01:37 -0800 (PST) Received: from vernon-pc.. ([114.231.52.81]) by smtp.gmail.com with ESMTPSA id w7-20020a626207000000b00562677968aesm9598886pfb.72.2022.12.20.22.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 22:01:37 -0800 (PST) From: Vernon Yang To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, Vernon Yang Subject: [PATCH v2 5/7] maple_tree: remove the redundant code Date: Wed, 21 Dec 2022 14:00:56 +0800 Message-Id: <20221221060058.609003-6-vernon2gm@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221221060058.609003-1-vernon2gm@gmail.com> References: <20221221060058.609003-1-vernon2gm@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 The macros CONFIG_DEBUG_MAPLE_TREE_VERBOSE no one uses, functions mas_dup_tree() and mas_dup_store() are not implemented, just function declaration, so drop it. Reviewed-by: Liam R. Howlett Signed-off-by: Vernon Yang --- include/linux/maple_tree.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index 4ee5a969441c..815a27661517 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -12,7 +12,6 @@ #include #include /* #define CONFIG_MAPLE_RCU_DISABLED */ -/* #define CONFIG_DEBUG_MAPLE_TREE_VERBOSE */ /* * Allocated nodes are mutable until they have been inserted into the tree, @@ -483,9 +482,6 @@ static inline bool mas_is_paused(struct ma_state *mas) return mas->node == MAS_PAUSE; } -void mas_dup_tree(struct ma_state *oldmas, struct ma_state *mas); -void mas_dup_store(struct ma_state *mas, void *entry); - /* * This finds an empty area from the highest address to the lowest. * AKA "Topdown" version, -- 2.34.1