From patchwork Tue Dec 20 14:26:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vernon Yang X-Patchwork-Id: 13077940 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 F3AE4C4167B for ; Tue, 20 Dec 2022 14:26:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 897748E0009; Tue, 20 Dec 2022 09:26:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8477D8E0001; Tue, 20 Dec 2022 09:26:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70FC68E0009; Tue, 20 Dec 2022 09:26:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 636178E0001 for ; Tue, 20 Dec 2022 09:26:36 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2A8F314047F for ; Tue, 20 Dec 2022 14:26:36 +0000 (UTC) X-FDA: 80262910392.28.9A84981 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by imf26.hostedemail.com (Postfix) with ESMTP id 85732140009 for ; Tue, 20 Dec 2022 14:26:34 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QAeeyh1B; spf=pass (imf26.hostedemail.com: domain of vernon2gm@gmail.com designates 209.85.216.48 as permitted sender) smtp.mailfrom=vernon2gm@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671546394; a=rsa-sha256; cv=none; b=jGVr3uTX5so4+rb7KhrlbHfe2RUzL/KZXXmnW4hUwrlq+xK8SadWML/witPBYzRGPfrazS 4k7Z4jVM8vVJI/jtcA4HOP7r3OdkObxKH5BB1IPyYsrDKHWsyx3S6/4b7TQGdbKMx0RNJt KOcB9wq1IPTnyLwNFYvO+NSbKId2FO0= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QAeeyh1B; spf=pass (imf26.hostedemail.com: domain of vernon2gm@gmail.com designates 209.85.216.48 as permitted sender) smtp.mailfrom=vernon2gm@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671546394; 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:in-reply-to:references:references:dkim-signature; bh=Bn2usd8RhSGSmZWb5B1NWCCF5E+CujnFtBp0hU4Vhaw=; b=B+Y7kn/SjIHMD/UsGAY5K5paYqYBnaYsBPc8jUtq4EkWMMWE5MZT9PPZGrShUR9MZBfnPL 9X9Al3rHMy6WXU7pLNI1FU2TIHA8w4yIqHQLvxt9gkUGyzknBwJMc4WDBQr8ZIA2HiMYWS YYY04VuRoTj59jOOHayhCjT1uEjlUvE= Received: by mail-pj1-f48.google.com with SMTP id w4-20020a17090ac98400b002186f5d7a4cso16695452pjt.0 for ; Tue, 20 Dec 2022 06:26:34 -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=Bn2usd8RhSGSmZWb5B1NWCCF5E+CujnFtBp0hU4Vhaw=; b=QAeeyh1BDYIV8cysQl2toWaUGz8d3JI5Fx2R7je5aKyPI8FrS9vaiR/WWyQUfMZGHO toNL8WesHyJHxS9B5e+U2mFpDVG4didblkCkoBIA+RIAw+EvyVLAc2gNxEAuws6MyNNZ Rek1JwcQmqwB9CveuiscUcQc/7dmK7A7FCE0DTwv1JUICXSZVjsHtRQGFT5L65kpQQTX h56Ljtc90jh1ZPUWtZzsumI07vT0462LU6Sh0iOM4l/zqChr0l02cdrH3m5PLzfujitC HcAyxPjw7KYBQpGRkyoOJxaCThVEAbZIGLvu21lT3ORsUjc4tAJnQnHRJCw2KKa9V03d ag2g== 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=Bn2usd8RhSGSmZWb5B1NWCCF5E+CujnFtBp0hU4Vhaw=; b=CeStpKh5Y+VGoL4ADy5lMsUp3wn3XAgXlTQAdg36OTYaU7ZeuzsEcmmN8X8M/IwpS3 AwLzijjoEUTt2u/bLCy0Yp6Drs8wb2RqIGWZhQ6mNs693ASEknoJlEyYykYMXXW8WuBR NLxUyohcnwYCv0DfUMDFfAa1bmZSG0bQHj4Ec+BC4Mb0xU/NuoHWY6JFpng7KECANL4l EH72m/PqQTeNtaaAN+ZfGouQ5VRmPnfEuBtgKyRBDnTRA+6iqGAKWv46TGGLlcA4x8ZX JcsXpIqIZMYE9ai8QB70/fwzSEL1LOrugyK38IZrzaJ20IEBirgjsbW8Hp/jDvjUe/L5 vTSQ== X-Gm-Message-State: ANoB5pnclpFk5SUczt2g1PTYk1yr72Dx1MDh9ojdEJkHbul7AmcNSNhd 4+cBQ9c9/MjQbqW3N39DWSVnPXhwCCZ2xDIzUVY= X-Google-Smtp-Source: AA0mqf6XV9AK7/ROL6sxQsVqW/vSv3j9dGERWBjFCKqTC/Hkp51i5+bxCYvWKi5cl933ffR6sQsiiw== X-Received: by 2002:a17:903:26d3:b0:18d:9214:1ae5 with SMTP id jg19-20020a17090326d300b0018d92141ae5mr43056033plb.23.1671546393514; Tue, 20 Dec 2022 06:26:33 -0800 (PST) Received: from vernon-pc.. ([114.231.52.81]) by smtp.gmail.com with ESMTPSA id ik11-20020a170902ab0b00b001897bfc9800sm9383398plb.53.2022.12.20.06.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 06:26:33 -0800 (PST) From: Vernon Yang To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vernon Yang Subject: [PATCH 5/8] maple_tree: remove the redundant code Date: Tue, 20 Dec 2022 22:26:03 +0800 Message-Id: <20221220142606.1698836-6-vernon2gm@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221220142606.1698836-2-vernon2gm@gmail.com> References: <20221220142606.1698836-2-vernon2gm@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 85732140009 X-Stat-Signature: w1c7f675kmn8wecu1pon8mje8x846nae X-HE-Tag: 1671546394-201652 X-HE-Meta: U2FsdGVkX18LamVZa09ahyR3ZkKvRivHgyusD/fkyLIIDSkgYmdOjS6prxjM9T8dHtoiT3WSecleNEnX93yr1BSN3fkhBZRY2u6Fv1x6bFHrCf7kzgVAI+6227VEbJAYqs6VG/YyuXyNEzwcEzvaSa1uGKFQnffk9h1FmOHNMQuq+W6WQiUREfkTLAmpth4y1IOH5UB9filxHfNzZLwKDIcoCLMhmyyhPO9hpo/tDEhh1911TiRM7BuOm7r0jerh0YIvp+7GtNrgv4eEsSDT4N7GFRo/IlYdSxiIbQwCt0fcNQWCn8ZB9/RchvG0XyLwkz6KDPiGqNMiEhGEjZnqpBtAF4GfZU/vNE5twTwTTx0r2AxAiUEtvxesqtmH/ynb68tcwoPvPaOpDeu8qDsWcIGsTQi4Pix/x2p7Rxpw6zdSrFQFilmKE/WvuxA93AaS9cWNnDRn2POqNiVc9UUDlygshi2w+3DulljnbxfbF895V3O/UZ1cWT1CF5Cy0z9DgLvuAhLa8leRaeI0azHcgEQ65PMfFnLGyiwXGmY9qPKV5/4A9ktTxlQz71aTkYkjOJz7b4CGcHefo4deLyIS65DWi5EQ+DVvv3bkHPkbufquNU4Wlchmb6tOjRWHRhUjiD0x44fXInPuVmsrJevcKqzXWj6GBy5sQImZJMw4Btxzud5uheOE2sawu6wQiE4Pofay0crVWRJyDNWqQB+1PbMuBT4IrqS/T8KJ3Zp5jq1zdwuW1q7Vqv0empW/4gfCIY273wzDG28qCr0o2MtpTEQ1rjBlzbtSgBvIdLAF6d6UirtimYO7kk+lpsUVvIK7M6wMbwPcbibaTlLdK4XC/AQGt27H3F8SOVJn7XS2qhqYUVTaog5V6jOwqJ1O+6ouk0YxaMEWPiTMLF8BMdfnCDIpBWniqQmEEoWXHac4swux3OkbmepU0VT1WHad8X+HSU0ymVZeEpdUOMiu+/6 J7swAEpI oRkXr0dXRKa/ZnUnyu0FYqd40UUfClw8e1eli1fZPZ651fEeKtvfNgWuMFUlc4F5ZgeV262Jlp856lW/XOXvqUae7llUnUUv31HylWqTk2pj70/4BI8/8R7CF3bHYr8kN7hDlfEhP3+jq/d3INnzYDFrur0EaDj4S0vgxfQ/G6v7bqqc= 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: 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. 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,