From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 0F4A01E1DE5 for ; Tue, 7 Jul 2026 11:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783422351; cv=none; b=aZecuTDwYoBBnwIn3hgIj5fyL/6CWSDXERqIPEvmZWwdJcBmvI/uHzvfiaK2JTims8BQrjqfLrizMI6ne1yd/C+APEdZyDosTJJWbOELqFAVuzdBV85D+6skTAfRJhBAzjwtvsXAQyrbSt0AQqZ7XJEOqn2xP3mv6aMWyQBmvvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783422351; c=relaxed/simple; bh=XZopGayAU7Xc+Hvi6oFnDn7P1h0w10pkYWIDYwIqPko=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=FEcWFfwYoI2N6JgFmtbfIHjGs7qFycPzc+U41wsXgmq1sbe8YvA9lSSdp0VI6Vtw0mz5l2QvSDHUso4JwmCq/8nMrJ+RQwmMBE0bJlgD7rjAjlduPjRFIgZH9qe3BMv0K+T2LGLIcEfePCR3pyXqwQD2i5lmD7ZXKQI0F6hpZE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=JTO44uvE; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="JTO44uvE" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783422347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lD+7UB/rcPH703dszzWaFfRlura1yWF0OTvxBOmx8Qo=; b=JTO44uvEWN3KTcmlp/6dmwckLBSpsLJZeqJvH0aEO9gmJWR6wS09Y03pvobG6gt4m/uUHE n+bZ42QwQVzkNxL0fcUYSgO8Itttuvpotp44vag3qDYoQGO0SfRx/mGSlAzWKkCG55eB5T aVxVubBJezQ9Aup7miYWfeZh5Rkr4As= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH] mm/kconfig: Drop redundant memory hotplug dependencies X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260707090331.52971-1-kaitao.cheng@linux.dev> Date: Tue, 7 Jul 2026 19:05:12 +0800 Cc: Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kaitao Cheng Content-Transfer-Encoding: 7bit Message-Id: References: <20260707090331.52971-1-kaitao.cheng@linux.dev> To: Kaitao Cheng X-Migadu-Flow: FLOW_OUT > On Jul 7, 2026, at 17:03, Kaitao Cheng wrote: > > From: Kaitao Cheng > > MHP_MEMMAP_ON_MEMORY is defined inside the MEMORY_HOTPLUG block, and > MEMORY_HOTPLUG already depends on SPARSEMEM_VMEMMAP. Keep the explicit > MEMORY_HOTPLUG dependency for local readability, but drop the redundant > SPARSEMEM_VMEMMAP dependency. > > ZONE_DEVICE depends on MEMORY_HOTREMOVE, which depends on MEMORY_HOTPLUG. > MEMORY_HOTPLUG in turn depends on SPARSEMEM_VMEMMAP. Drop the direct > MEMORY_HOTPLUG and SPARSEMEM_VMEMMAP dependencies from ZONE_DEVICE. > > This does not change the set of valid configurations. > > Signed-off-by: Kaitao Cheng Acked-by: Muchun Song Thanks