Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2624157lqt; Mon, 22 Apr 2024 17:12:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDApP+A1kPOlcy91+j3gQxzi80sDM3g5s3VrLcAvCZcnpQdMDnBWfP3U6ljPqrySTQFNWolxTkzx3AavFY/aH8KGm16YURfuu/29Jl/Q== X-Google-Smtp-Source: AGHT+IHFT9H304493SaMeaAnb7i2rQp9HZBBt9ZDvQDiGUnuPGur2hgSVIBS91kAPFuuQinEV8zS X-Received: by 2002:a05:620a:57c8:b0:790:7292:b062 with SMTP id wl8-20020a05620a57c800b007907292b062mr5817923qkn.13.1713831135785; Mon, 22 Apr 2024 17:12:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713831135; cv=pass; d=google.com; s=arc-20160816; b=GGTWwpZq+Kb6hVapqrMyTus6hfl56mo8J3h0YwYlPkhZdCtcNMBBDFYNPHIFVrG5ji PyK+Hc2dVJPYfcQRk5OZMe3qWnph70OlVZLqac0cf/02ZaCniprcBgm+upi2n8gUu4Is y4xkSopfI9YZAitYvRb9qJdvj3G9Dc/+NsntwYUT6m0FQeuPKbn32GKrI08O9rhvWFDN 3L1E7b5+Gr475zjzOzXB5rGzndCDMv1r1F724y53lTWfRalvDBRlToh78DLontgHQjFe grvrtcSGleTKAIj8Uxsqmn1ovibM3FWMfRuxXssYze/BW0bHlqEgLCGMWvDyeWbhjnTe JcLg== 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=qM57axGgCUwaChoV812buMu2TiMYDM5U5DZ+sLxp8ho=; fh=cGq4Q6i6UiOyhLBJVsUvFVdgElTicfGT5ED6skUyvNY=; b=MIvP6i9+nSn9dLOEBbJ5oEG9ZScwhm51IwFDzNCWbCjx3eWSpzY6mKrMghvIOnxk6k GhWaQBg72tyntzSCOJKxDDLr2v6zXbX8oTKSR5Q2OkXhIITmBrvW/eq0z0eFCkFfkfbc 6ciVZ1AIAbGq3TTOa5v3Oo6CpMDzJiWtCpmt0Uc8og7cFjD068tcUfJ+sxuIwfk2IojT OxiQDCMr3prSs10om/opAXaU5ZKWI+q8SgljuSlTg2OV+E5cPU166EWYrEPLCBkJsNib MXip2hNFBtNJwH0IXrTK70tbzvyEY6KaYDc3EI5cPKahJRclAUbAQcLqfp6bLkwAmVNK O1fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fHGXah8B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154296-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q8-20020a05620a024800b0078d5ef604b5si10879955qkn.641.2024.04.22.17.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 17:12:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154296-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fHGXah8B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154296-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154296-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8032D1C213CD for ; Tue, 23 Apr 2024 00:12:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9732B17B4F8; Mon, 22 Apr 2024 23:57:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fHGXah8B" 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 B74D317B4E5; Mon, 22 Apr 2024 23:57:35 +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=1713830255; cv=none; b=ZR652IzT8O/XJKGj0p7MGROYdAwVqvt9Tttbr1HNrCJxufDUwK4sF32R17Zu9aEkQyAmu5RVvokbyleY5sjBYE0GpYNWC98e1oDotz9H//5wvKBqIBtacL+XTilbelPdN6ldqt+i+8g5M8jtUlmrik/iOGeBfai/UxF7eLZkfSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713830255; c=relaxed/simple; bh=d2Q9GMVJ+2fK2NguGcy/bUN6cI12JDIjcFarhFhXJ0Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WpeFwm2rxAC1945zC37z1ZNdylBE6mkD2E9AzAN8ouiJMaOL7+bw/qPVKmBe/3Qm0qis+Axhmoe81n04wg7aTGXdjWAYsUXpM3LWIA9eD1n//B2r95dLdkqw/t/SHO36Tu0Op0XDEMFwkpDkeEVK1/LHbWd8a+AFvI1OYxhaPj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fHGXah8B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7605C113CC; Mon, 22 Apr 2024 23:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713830255; bh=d2Q9GMVJ+2fK2NguGcy/bUN6cI12JDIjcFarhFhXJ0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fHGXah8B/s04I0qqcpSVL+XVnpTRibDIkQ6Nl8guPHZbeTrjAgX6Zc5xMFgvJYru7 jRzLWWBySrLoj8P3eseYRozxL1TKFEauLuYqnUIdHE4rUcdEID+bu3RooIx74eZlqA qqGdpi18zX5IAkUWKAjNHxCwwrPZE+tWa3NZK/mAKWWrNxbqRcSmrsL2hddRlYbN80 Uh6G5cHFKNDUeMJ9u7Tig49HQuOFvm+F7I5/eO8jcK+N+25eALlTxjPki1p7l5CozB dVzz5XO3LJnt9qrQwTW0J14UO5o4T8xgp2QD4XVk18qPqW5Qq/YiDn4JGc+x5bc+c/ sRbZqo3eEbyWw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wei Yang , Yajun Deng , Mike Rapoport , Sasha Levin , rongtao@cestc.cn Subject: [PATCH AUTOSEL 6.1 06/19] memblock tests: fix undefined reference to `early_pfn_to_nid' Date: Mon, 22 Apr 2024 19:18:20 -0400 Message-ID: <20240422231845.1607921-6-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240422231845.1607921-1-sashal@kernel.org> References: <20240422231845.1607921-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.87 Content-Transfer-Encoding: 8bit From: Wei Yang [ Upstream commit 7d8ed162e6a92268d4b2b84d364a931216102c8e ] commit 6a9531c3a880 ("memblock: fix crash when reserved memory is not added to memory") introduce the usage of early_pfn_to_nid, which is not defined in memblock tests. The original definition of early_pfn_to_nid is defined in mm.h, so let add this in the corresponding mm.h. Signed-off-by: Wei Yang CC: Yajun Deng CC: Mike Rapoport Link: https://lore.kernel.org/r/20240402132701.29744-2-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (IBM) Signed-off-by: Sasha Levin --- tools/include/linux/mm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h index 43be27bcc897d..2f401e8c6c0bb 100644 --- a/tools/include/linux/mm.h +++ b/tools/include/linux/mm.h @@ -37,4 +37,9 @@ static inline void totalram_pages_add(long count) { } +static inline int early_pfn_to_nid(unsigned long pfn) +{ + return 0; +} + #endif -- 2.43.0