Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp989387lqj; Mon, 3 Jun 2024 07:10:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX74aYyasOmpIrTv5J2pNeg91cqCwO1VVhXwraRdGH4+68ECXILGWzhKMrVTqiLS4OjkBlmlPUGS1Z86UWkcZSw827hrGTtaTwnyBHQng== X-Google-Smtp-Source: AGHT+IF3OBg+3bpkpzdSjpX8AOtsPlY7wtJ/7cKvLRK71vKzWTyYtOR0Fvkg7VJCCVK0r6y6uUth X-Received: by 2002:a50:d498:0:b0:57a:31a3:f4e6 with SMTP id 4fb4d7f45d1cf-57a363c0bc8mr4589215a12.2.1717423826683; Mon, 03 Jun 2024 07:10:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717423826; cv=pass; d=google.com; s=arc-20160816; b=W/IBDGWkUJpgRn0xnZX2TLioORwbZROFTtGCMlBhpnCWC+Q7ATZ31O0az48yIdYYl3 9HT2o+kBHcSzkn3GgZZ0+a6oqGAUK885twcNW/9f+zrqMAheVM8/qbmyGNK4KOfr1v+q 3aMlLimFSYV3WeaLHMTuY58QMfEaEWd0P5djk0eN8foszDbJfF2BgfLVx2QjXVI5xbu3 kNYB82cqqChvBck3Zv59NktND5+1BGZAPTerUzWJokwBBkhrnr7NGI4Q8Nj8H+FgzXMe pi7v+VqzB3v9cS4pO9xKfai7B6ZJ5JISw25OHip1ORxKDIZ/oL1p6dI//vtmjQG8b3bA Kyiw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=jxTas5tmFCGJIMdZB4TM065IiPcwXYKgzzCiEGOMVnA=; fh=feCJl9qbyzoOURRnB1u10ObmS2iLQ9nJIRP77XZiSFY=; b=KE9qTbfT4NlPh19RFyH0zUrL+5RS+wmoJ0vAC8pV7HzWav3uYqwXAdiTfmCEVHNGly KAvYexkyHHqNC/QMUACN19V6Rzop/zrySRfKgbYCrM0ewwebbAVWJvAVRQ3VXNTxl4qq sNibmJsWzYbbcwrCnRqMNsTZijAw9hKDRFvpi9HhT/dMdeWAqv82M+oVQTHxyOwIHArM fDz4+Xo+tliBamIhql6rCWGz6R8QW5paxj2XNonfl/tJTaYBp0U4ZVX6P2M9Awndwrio UQrZAL2Cib/294j9Aqv+ez65Az/PYMfABMbsHYQRtix4g7Y/2M0EH49/G/ycTDvCfdpI uaRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RW9Xb19P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c62d51si3984645a12.293.2024.06.03.07.10.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RW9Xb19P; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199270-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 639321F23A34 for ; Mon, 3 Jun 2024 14:10:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7ED612E1F2; Mon, 3 Jun 2024 14:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RW9Xb19P" 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 0073812DDAF for ; Mon, 3 Jun 2024 14:10:09 +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=1717423811; cv=none; b=nnscLVijq+SzOjibgZ5II/R0eZv06/E1TYeIl3uKhKNpfphUz/5ensBPmM9v3GIUCH10QyEmeJ6EfiNZbRGf52HGa4ikuYzFOrx6aZhY3Hdcf7eQGuA8wa/3bUe/f2K6L/Xo2ohdCfUGh0VcuK479+D/YLFHkF3ESQbGRDBqktA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717423811; c=relaxed/simple; bh=oLnbUsQZPTSZJyGgOFY8nDJg8AfY08tVTPvKyraZzn4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MzdugaASj0dRMi4CWTlPBjwp9wBgGeIZX9h8DOmmxIBCFZDSoQcfEu0bJw+dOnAA0mXAyTVVS5x7ZoN7Rs7t+emnBfFelPnQyAyy+Jl2etIJ3/zEliGwZ7fsbBgZNb0OGYUFRD4U5TRPsumCsiNSzTnRXJFdqKJeia1n/Frp7hU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RW9Xb19P; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71E12C2BD10; Mon, 3 Jun 2024 14:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717423809; bh=oLnbUsQZPTSZJyGgOFY8nDJg8AfY08tVTPvKyraZzn4=; h=From:To:Cc:Subject:Date:From; b=RW9Xb19Pt6ajq+uWDsGZDrI7Q+K0ozp1AhOzXoTb7wwv027HRQtV1k/2HFm9ptrKY wqqpMNUtKTj0v8H3+eTyyNuWW4dfpZWOJ2NqqQO4dsVu0Y0hinoEfPIQrOYuCcSHxW 8dLLdTNlA7WLg7H58ctmK9Gqewhz7tQExcBUf2e/Vt4yCiGOGv6PglPmXMYTD//D6V qG5C0GUfKibNB1CoyJM3qFDY58qKnRPaPrcnIiqnHrT1u3e3MnyHzwZMj7cIv/r7SW /++mRHyPEbhDSyhXPDCzFqyFbA3djQxirSt/2pHRVzMlMTkhd/wL700yeBiQYn9VZn vZL/qzZIG6Z3g== From: Borislav Petkov To: Mike Rapoport Cc: LKML , "Borislav Petkov (AMD)" , Narasimhan V Subject: [PATCH] x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node() Date: Mon, 3 Jun 2024 16:10:05 +0200 Message-ID: <20240603141005.23261-1-bp@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Borislav Petkov (AMD)" memblock_set_node() warns about using MAX_NUMNODES, see e0eec24e2e19 ("memblock: make memblock_set_node() also warn about use of MAX_NUMNODES") for details. Reported-by: Narasimhan V Signed-off-by: Borislav Petkov (AMD) --- arch/x86/mm/numa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index ce84ba86e69e..b44a3ae51e9a 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -614,9 +614,9 @@ static int __init numa_init(int (*init_func)(void)) nodes_clear(node_online_map); memset(&numa_meminfo, 0, sizeof(numa_meminfo)); WARN_ON(memblock_set_node(0, ULLONG_MAX, &memblock.memory, - MAX_NUMNODES)); + NUMA_NO_NODE)); WARN_ON(memblock_set_node(0, ULLONG_MAX, &memblock.reserved, - MAX_NUMNODES)); + NUMA_NO_NODE)); /* In case that parsing SRAT failed. */ WARN_ON(memblock_clear_hotplug(0, ULLONG_MAX)); numa_reset_distance(); -- 2.43.0