Message ID | 20240130013549.89538-3-sj@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-43722-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp940078dyb; Mon, 29 Jan 2024 17:37:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9MHrDbu+VgbC4vgScpBqj8K/+9j/12k/QLrX+Sum/oW+A47WvdpRauQWDY8s6AP3JAspa X-Received: by 2002:a05:6a21:3405:b0:19e:2688:f483 with SMTP id yn5-20020a056a21340500b0019e2688f483mr1021316pzb.43.1706578636179; Mon, 29 Jan 2024 17:37:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706578636; cv=pass; d=google.com; s=arc-20160816; b=IsPDMVmEIgItfbIq8TMiH+wyKxIDE34ijnpmHS14R8F+18K7RPOu/ACdjeKm/6Jl5C LQM6KfMlQkCfv6Jh4OvZc0BRMi6Ty45ikXms9XCt03L/eN7Mjo3W+2c6k5/i1eP3+60Y ALA/ZqzitZHdWBIAOlMkzRwzrxNJWKqFxXC94eoWSNo4muBmKyjzEsHQL5hKT3en0ib/ LpYeQH8i0XCiGP9ee+f3J8tSiXs972s1aogKIfFrvs87Q3PkHnzJHkIbadsmnALCHivb we7xZp9KxBLXizxHwgQAz5yqTNfeP1zZ9rP3aHkrMmBBRNo2Sy29KnUUing5Pn0Z9eyb qd1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WzEYvtVjS/xSTfNpoix0HiMc61saf0CeN3AszWfyWPA=; fh=BzdeVYqZhG5iuwuKJRNLP969rvCput73lx0iwx2zu7A=; b=CEDw2Fvx4aAKYTJ0sbZjVUsbPJhDgIibRJ3fyUWq4nUMwGemGKrBY3FL3MqI16tiAd /CABdRyreFy82IjnGGVQ1fUeEQmIqDGPeCtnp3H/xROGFQtnveE4BA1RyXxNVVpBUYOM li82prJc25BfyZpKzBzzh83LHNJTcj+LX25FJb8tCVVz+FB6rHdxxrgnCnjhcYw4j358 vz5wbEyejhUPDKYNFgVOmaU1FVzo+HdGIqClK5AzXuInCn2x5tKuh1SER56Bw77yg3zm EVG+i2CFq9/8nl4Gl3LoW7egHCAl5UJBdts/eUGlKsKd1aKXz3WBDon5qEs+mj+Mx6pi jCDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CKZfRcZj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43722-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43722-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z20-20020a1709028f9400b001d7204a84ddsi6617210plo.499.2024.01.29.17.37.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 17:37:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43722-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CKZfRcZj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43722-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43722-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3A8E7B22A1A for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 01:37:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06186376F2; Tue, 30 Jan 2024 01:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CKZfRcZj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4980D364AA; Tue, 30 Jan 2024 01:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578559; cv=none; b=cIQEkS1JsCVTNYdse3AM4ihbBnIHZdv5RCEFJK/FEWSzUo7p6+JL+tLaFiQpDdmVCAUnbxokQLy22gRSBqdg0aB3Zk3SqgM8PERzv/U4v+00oRezKx0bOI/YpIbooZD7u4TaO8ouuAxI2jOzFRITQnX8ZMSOu0xUrkrI5DOuZV0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706578559; c=relaxed/simple; bh=GSL7nuFSaQ43gT72aNum7HC23/clv4WedM2oZBR/GrQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=I3WjOyooAf96DVrTsyG/+DUYLb6CAY90vyI0zu8Kmr2pFxai/4Kc9VvkM4x2otOWwEzWAyr9jc6NFNg4USoXOsZS7/VyfYCWNFrZ9VeDPEYB0JRFFiL5Zecwl7EMqexJ5WbwkKgcmqWkEHl2bgvIsmp/0N5EWzpIyOvEZ3CYzh8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CKZfRcZj; arc=none smtp.client-ip=10.30.226.201 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 <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789477399659918187 X-GMAIL-MSGID: 1789477399659918187 |
Series |
mm/damon: make DAMON debugfs interface deprecation unignorable
|
|
Commit Message
SeongJae Park
Jan. 30, 2024, 1:35 a.m. UTC
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 <sj@kernel.org>
---
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