From nobody Mon Dec 1 22:06:12 2025 Received: from sg-1-102.ptr.blmpb.com (sg-1-102.ptr.blmpb.com [118.26.132.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 173B326F2AD for ; Thu, 27 Nov 2025 09:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.26.132.102 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764235561; cv=none; b=oMa80HoSFMokBwoYayFWWJ+4umhlYCEUeHzn3jAg1i9tBK8JuNGo3wc8E7gj8fTJcYW9RxCzKksCaHYonAekm7FTuRw8JLhSO04tbd5H1RvqEhAue2LRSC//8dgTR7dviJ6YHNB+IIaTPliW6KPSdEpPqpUsQmC/DTSx2FzLjYM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764235561; c=relaxed/simple; bh=wiS3WH/wvBNzU3f3youjgu3lcpoP/PZYa7wzUKnWm2Y=; h=Cc:From:Date:Message-Id:Mime-Version:Content-Type:To:Subject; b=G3eVWhK7lv1EW0Z75mfqITv9tl1JpnRMXqQsJzx+L9uCHZlqf/dNhQKYjvDdxv4MozI1viZ5j6CGS1r6Bvsj9nqatQiH9WSZakEUc4tS5EkcMsqhk1J3th658Bqph4BpJtCVlKK5NVXfVMhdppMDiEwS1Qemuvz81Vk2BmbRolM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=e53yThEc; arc=none smtp.client-ip=118.26.132.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="e53yThEc" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1764235546; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=8Nou/MqkuvKxL9ESIFJy8/4e8vQNge3e0G+s7mmZjGY=; b=e53yThEcEwXNnvkfP3SJRFJKgMoyMC21vqL9r/5ZgFAkwPS6whfU8B0+sixzCBgxeRXrSv SL3NgfE5fnPCayUXqlK7gXBtVeobOqyFtvO+hkI2s9F68kBo6edvprZNhZhDFEQ6ybcm4m QZ8w0VPaMsPRyuet8T376/pwibJVWMkNzfeMecP1dym0xvwUWWuQ0vSZ8IbqI+F3MI+Oen vrGGbztzdPnIVszDMa4wydGS7IzKp1NIcWHzdt2yke2K4byU/DpKphXwtU88foCEd/8BrT 0dcrbSbv0tRoT+fkLpt0Q9QIzUPgUknLgBTOIaOxOJwYYzr/9ZECM58v8yscBQ== Cc: , , From: "Jinhui Guo" Date: Thu, 27 Nov 2025 17:25:12 +0800 Message-Id: <20251127092512.278-1-guojinhui.liam@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Original-From: Jinhui Guo X-Lms-Return-Path: To: , , , , , , , , Subject: [PATCH] mm/sparse: Fix sparse_vmemmap_init_nid_early definition without CONFIG_SPARSEMEM X-Mailer: git-send-email 2.17.1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When CONFIG_SPARSEMEM is disabled, the macro sparse_vmemmap_init_nid_early(_nid, _use) passes two arguments, while the actual function accepts only nid. Drop the extra argument _use. Fixes: d65917c42373 ("mm/sparse: allow for alternate vmemmap section init a= t boot") Signed-off-by: Jinhui Guo --- include/linux/mmzone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 7fb7331c5725..f6dd181a4821 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -2293,7 +2293,7 @@ void sparse_init(void); #else #define sparse_init() do {} while (0) #define sparse_index_init(_sec, _nid) do {} while (0) -#define sparse_vmemmap_init_nid_early(_nid, _use) do {} while (0) +#define sparse_vmemmap_init_nid_early(_nid) do {} while (0) #define sparse_vmemmap_init_nid_late(_nid) do {} while (0) #define pfn_in_present_section pfn_valid #define subsection_map_init(_pfn, _nr_pages) do {} while (0) --=20 2.20.1