From patchwork Tue Jan 30 01:35:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13536656 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 53D06C47DB3 for ; Tue, 30 Jan 2024 01:36:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 90D956B008A; Mon, 29 Jan 2024 20:36:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 893B56B0093; Mon, 29 Jan 2024 20:36:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 670F76B0096; Mon, 29 Jan 2024 20:36:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 59F6D6B008A for ; Mon, 29 Jan 2024 20:36:01 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2404240261 for ; Tue, 30 Jan 2024 01:36:01 +0000 (UTC) X-FDA: 81734261322.02.9587677 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf18.hostedemail.com (Postfix) with ESMTP id 811171C0014 for ; Tue, 30 Jan 2024 01:35:59 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CKZfRcZj; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706578559; 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=WzEYvtVjS/xSTfNpoix0HiMc61saf0CeN3AszWfyWPA=; b=3sPwx7XfJ2P7DpK6JTGSFEaY3CbSLCm7y0f8zDizjGzA7KHF7eNx4lWM3r8RyFsO5+18vT PDgmqh+cnumoZlKmIJuuc4PPXaJ43uMQWBk59UTkqvpTMC8xVbaq4qMZfUXWEUZNyJ2EvI sISDePodqaLtm0RINVzGp61tCMfnmps= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CKZfRcZj; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706578559; a=rsa-sha256; cv=none; b=oWZ7yVjCF9s6dt68IHSDWERJFsylpF2SjpadhPu4XdolqWrXfu0j3SZ+3o4i9J8AaM8E85 QtyviB+zcBY0KlJqAePZT/0VQkLO1/ZefLAN94/eh/GZ1MiLWCBTowzMzDjAzHupxricqw kzHs/dttIaVvqujfgAU7c/yqSwwCvaQ= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 881556233C; Tue, 30 Jan 2024 01:35:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D67DBC43394; Tue, 30 Jan 2024 01:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706578558; bh=GSL7nuFSaQ43gT72aNum7HC23/clv4WedM2oZBR/GrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CKZfRcZjeMJaoFjnzl1T3ocvC/Uhe1cyzn0Rc/XlnkaJj+m8bW46azfzCAuxbWIjn ewYrYf+SX915gV51UI+fD+Juf+moFNFV8MT15MTOIC1sS5Sf2YrvbufrC6MDxeidSc JdIqXBP51Er2vjIiDvxotFCBi4JC0GwO0yHvVrrigMXoRUfYpq8mniDcee5NfVkdqM te+wzvlVzvP8MoNEKUoCLL70JAR0WKcmZD4ugSL6B1yRmpLXJfm9RvKlB0l0OnmYTm 04Sb7RUNXerZ/8174TpYCB+CbhmjLKtX915YANCjPBkRq+5saAwP9Fj6G04a0cgKun hPWm6PJgR8KEQ== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/9] mm/damon: rename CONFIG_DAMON_DBGFS to DAMON_DBGFS_DEPRECATED Date: Mon, 29 Jan 2024 17:35:41 -0800 Message-Id: <20240130013549.89538-3-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240130013549.89538-1-sj@kernel.org> References: <20240130013549.89538-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 811171C0014 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: buaukd5j9m1r3iocqm9dhdxbydahp36y X-HE-Tag: 1706578559-628266 X-HE-Meta: U2FsdGVkX18+XXbkoQEBx4RmmgT8uUwP5SNjOkrpXFvAFRSBPTaUtSZyMnRNjVzLTMXpSSQb4D/zb+6A/a5PHD/k7vH+C6WjKJ0ebH3oWkRIx0SNpgQ4Uj7F4jEeiCNnWv9dp7P0O9Hij+glE1Nh7+pgxzmH+20ZHOyzP1LoEBqHqVF2j/3+kh1jdYQtlZaJVQ7W5rzLqzMcqjZhVBfd9EMbFxY48z6WP86IFAKX5S2vnn/CQnlz6JytsjsCTZj12mFdJK4CYs3nuSLYxubXfEHgZfmyjI5Alw0km9oISieEYwlrLTzkYXWv8fvz4ddwmL530HsF8DriJujxGBgybkfClKww3WNAywtDQGJoTi/acbLWE48iSPVBJ4YFeY5joEIWn/tSvN4kqZk6WqeWgPJNwjNc4bEgcUcxGPH3RhoufsaI03oOYy6VNEPHyVfKLalNWchIby8CczpO7Nl+BAMvWuLc4v5YXe/nBOuPLsdO0QpOtnm9NShTBmTE31QuJc+gP6lKixl9OM/4kn+Lll5R2T6/yp5oaa1qOLrCtWIyYe+5qhiRNaME4EF6Y/xsdSygk1Eak4w83p2q3m/knf/oEke2kSF62oXLEESkICh9l/NDgKWtzh3ivCw2KKwPt9DnWJsdAM88wv0doluFSNZyHkGE7/TMV4IeFNRacbAqnDO37zTlxeoslDyIuDURAp3VA+BzOUYuhL5g70mrIEPxk/hmZ4XBFAifSEKHE637TsSDQaTbnynO4+KYvGFTF+gadHrJWEIMLjmwNj4tpGNYHHvjIZ1L1BjVkEmNGX1X/s8+MTrOqiOsjWFLss1pu651iplVp/IGq3cc91KBzSHyGQznh9HUVIlruy4zvSo7CdEHba4oyPX4bq7MSVCZwcy6TcJEEjeGjjwon4RZ8S26NaGt6oOQrniZIJgsXSuVCSvB7eKB/r7XZ79nFkgzH5QFdMzhdeRgQTxXcEK L97b9rLR dBCUha65w3xkF5wRxkEcRWHH5BRBNZu5njdjeEu5fRQcQzS9GBGpgaEgEJIymXQqViPY6PPUpTL8Xxh2PWWIkTfUft4VuwmiQN+V7w8oH7xP6qkBuFG+mQpB9bLEvwujpF96Ug+WxF67zMzneQGz1/apYgw4O1Ds6BIQ5Eh7166Ha3hmVTl6N8ukLwTVlkmRNtJmFyZZZvFR3vu9H5Xvm/ITaj93IVlgQRbN1ljG1SqZlHrLvg59YksgJRbDFDB0wpoV54aXQ6BcM9uV4tckO4uYI6ix6ASD7/N77WZObPGgWH2pfCVs1MoxTN0bacOcNVMZf8sFl07h83zUCqhiSlZu4cw== 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: List-Subscribe: List-Unsubscribe: DAMON debugfs interface is deprecated. The fact has documented by commit 5445fcbc4cda ("Docs/admin-guide/mm/damon/usage: add DAMON debugfs interface deprecation notice"). Commit 620932cd2852 ("mm/damon/dbgfs: print DAMON debugfs interface deprecation message") further started printing a warning message when users still use it. Many people don't read documentation or kernel log, though. Make the deprecation harder to be ignored using the approach of commit eb07c4f39c3e ("mm/slab: rename CONFIG_SLAB to CONFIG_SLAB_DEPRECATED"). 'make oldconfig' with 'CONFIG_DAMON_DBGFS=y' will get a new prompt with the explicit deprecation notice on the name. 'make olddefconfig' with 'CONFIG_DAMON_DBGFS=y' will result in not building DAMON debugfs interface. If there is a real user of DAMON debugfs interface, they will complain the change to the builder. Signed-off-by: SeongJae Park --- mm/damon/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig index 29f43fbc2eff..fecb8172410c 100644 --- a/mm/damon/Kconfig +++ b/mm/damon/Kconfig @@ -71,7 +71,7 @@ config DAMON_SYSFS_KUNIT_TEST If unsure, say N. -config DAMON_DBGFS +config DAMON_DBGFS_DEPRECATED bool "DAMON debugfs interface (DEPRECATED!)" depends on DAMON_VADDR && DAMON_PADDR && DEBUG_FS help @@ -84,6 +84,11 @@ config DAMON_DBGFS (DAMON_SYSFS). If you depend on this and cannot move, please report your usecase to damon@lists.linux.dev and linux-mm@kvack.org. +config DAMON_DBGFS + bool + default y + depends on DAMON_DBGFS_DEPRECATED + config DAMON_DBGFS_KUNIT_TEST bool "Test for damon debugfs interface" if !KUNIT_ALL_TESTS depends on DAMON_DBGFS && KUNIT=y