From nobody Tue Jul 12 17:32:28 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 223AB1CF8F87; Tue, 12 Jul 2022 17:32:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lj79n0Slyz3bF2; Tue, 12 Jul 2022 17:32:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657647149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n9bfxqBPaRs1H9BqwpVF886q/6/lgUt4dgvCQ4FTRgo=; b=qjqD1SAgxNRZf/KfNP87fjBfGyWthA5MtzlvUX7Xrzym0k2UNX/aBpTvLAedZWWM1tUbnr nBkw7bMPOw7d2CX79PG1s15ZV8aP+eRuqYTbUQNKXbJMW9nid3TD3HU60HTxLUjcBnYBEy XW/dH1CqKvx8711bR9paTAD3BJ1QFlnDLdz8/FasfzAr8lmCy4YXhJUtqfLGBdYEFZvlPn Rw5rLDjISk5uazToyoEu0HTciHSO45aO4VV3K21VfQr0l/KZJvpbJ6mV7Rs3VwMuYF1VYc dF+vR45cLCrbh17JH1RuSy8R6m1uiBKLXtX4ZsYn0MlogdVVKgEBViy99QnlvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lj79m6cZmzsQK; Tue, 12 Jul 2022 17:32:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26CHWSIS065441; Tue, 12 Jul 2022 17:32:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26CHWSIV065440; Tue, 12 Jul 2022 17:32:28 GMT (envelope-from git) Date: Tue, 12 Jul 2022 17:32:28 GMT Message-Id: <202207121732.26CHWSIV065440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Doug Moore Subject: git: 87e6f3d27eba - stable/13 - vm_phys: #include vm_extern List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 87e6f3d27ebad83f1af96a020fd9f18a8e652a68 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657647149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n9bfxqBPaRs1H9BqwpVF886q/6/lgUt4dgvCQ4FTRgo=; b=HXHxrtx1MrnAggk4kjhEcdxw0aCA+bDCRcUnJWryq4EGGP5pR+LukHnpEU4EfMrKs178UI HjOhd2nuEndmZD/0OJatrrIKMds9TvaZ83ofOBTwq847zB573n5v+K1oqV4uWcco/jm3te rCqVoDscuai3U8Xa6f/WSnQWfYu2sLjIZ5RUUgSaODf/BfuB/U8/6D59tTYm9hq2zQLs3J jwXKBBuMt+JH78xb0d6YOZ+4F1rHZdTcB7gC6DRib1muIziX5VLD8OL/1vW8h53PNmxq/j vozNLIu+Tcjn3mM7257h24tVlME3ns3t+UGc5j1hIFOyCCjYJ1cm0fvLGof8Iw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657647149; a=rsa-sha256; cv=none; b=ODKmbIWRGbcHwOiLY8wQAAhhJc3vpQJiORan6mdK2qoFLuxPpJOWHw/Gn7XYbgUdP+h6qW JlomvFc30NAcVaufEsRqplKy6GPM77R2TOd4sb0747a4Cj6hsPDx9s6NFCwh8KZOUGTWzS Vc27wqi051y/nq7N3fLDIXFm4Zf2hiZyxNo8FaoVVPj7GUC+K+92a362FrKxuACazFSAiF QRpeMKSkcjE/VvP4mtTCdvpdnLDnIOFL3nuLRcOmeY5vVx5UOOOlY0MEVNUlTjn8gepTU0 V/mxVLu4z0Ipxk2NJ/WJZKbNjUFCUwawSLZf4IcqAQaSDGHq4aSkq/XCeByqhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=87e6f3d27ebad83f1af96a020fd9f18a8e652a68 commit 87e6f3d27ebad83f1af96a020fd9f18a8e652a68 Author: Doug Moore AuthorDate: 2021-12-31 05:31:18 +0000 Commit: Doug Moore CommitDate: 2022-07-12 16:26:04 +0000 vm_phys: #include vm_extern Arm64 and powerpc don't include vm_extern.h indirectly in vm_phys.c, which means that for the sake of those architectures, it must be included explicitly. Also, fix a set-unused warning that jenkins also found. Reported by: Jenkins Fixes: c606ab59e7f9 vm_extern: use standard address checkers everywhere (cherry picked from commit 01e115ab83a4b82216e02198dbcc7c794a752711) --- sys/vm/vm_phys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index 9a13fe23c874..51d33d66324f 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -1645,10 +1646,10 @@ vm_phys_early_alloc(int domain, size_t alloc_size) * the phys_avail selection below. */ biggestsize = 0; - mem_index = 0; mem_start = 0; mem_end = -1; #ifdef NUMA + mem_index = 0; if (mem_affinity != NULL) { for (i = 0;; i++) { size = mem_affinity[i].end - mem_affinity[i].start;