From nobody Fri Dec 31 06:26:14 2021 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 1ECA71914716; Fri, 31 Dec 2021 06:26:15 +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 4JQFX6639mz4bkL; Fri, 31 Dec 2021 06:26:14 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 AF439267FA; Fri, 31 Dec 2021 06:26:14 +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 1BV6QEF2099304; Fri, 31 Dec 2021 06:26:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BV6QEnE099303; Fri, 31 Dec 2021 06:26:14 GMT (envelope-from git) Date: Fri, 31 Dec 2021 06:26:14 GMT Message-Id: <202112310626.1BV6QEnE099303@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: e6930b1c5f8f - main - vm_phys: convert error back to warning 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/main X-Git-Reftype: branch X-Git-Commit: e6930b1c5f8f9307f72eda1b5b3c504dc009cbc6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640931974; 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=rDeYNM53pDY5fkAipv1uSJ//9qFPjXAz7cho+reDXRg=; b=qIsMNM0QwV1cn3UmYNfT9ZM6yBlCiN4Mswem4NDVl8qycj3BDs06HTJ+o8sAqDbnA0Jxdn tnQBNLGQYcfYtZ+f7G0zzfpJu8nundfdE5S1c7c548ibZ4fzr6X8kDDK/wzXqPsuhzBEYq f78/BSn+qe7FBT9Dki3X80yLe1s9KIOvxczwZaQy1UpSQW8uxVdAAzV4RqoVJoUZ+LQoPi M9RKf0T5fbyreYskh5Mf5rUVFPNPW5WNWC/T3W9rSNbhTezJn8Yf7y+XcVL5EoXwXFz3LT /I0InkIwhkG6i9A401BowXa15TCqvtKa5jHhNua+kPSo5PFC+K6xrWIZFQdV7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640931974; a=rsa-sha256; cv=none; b=ULoW41kR2YhAj5gxmk9gBCu39GWUIN/pXcfTW6D6XF0FBYMuAf/QJGsEAGnAs0oXgegUl3 /W1lOyFlXKLCVqYG11sVKfHeXtW2y/i0FBxuAmcUjY7UBGCMx2S/0ea+HrqS5pbYK9LcPs BzoTZwdwQedvuZDeaSuni6mru4mOB7pF8Byg5Hs7K7jzyLMozL07o56sdZmvt5P1CeHz5s P68WlgGgA7AMnNHNtZ4sa+NutMwqGeLYepQsBDDQbrh2v6l0Yj18l+v1vq/TqeBUOfDD2y qRogm5EwbwCinaLAZCPG6a3gY674Cs8ebL8VyP08x1itgIx2/N/1SKf8Y8El1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=e6930b1c5f8f9307f72eda1b5b3c504dc009cbc6 commit e6930b1c5f8f9307f72eda1b5b3c504dc009cbc6 Author: Doug Moore AuthorDate: 2021-12-31 06:23:46 +0000 Commit: Doug Moore CommitDate: 2021-12-31 06:23:46 +0000 vm_phys: convert error back to warning Move an assignment back to where it was before, to turn the defined-but-not-used error back into a set-but-not-used warning. Fixes: 01e115ab83a4 vm_phys: #include vm_extern --- sys/vm/vm_phys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index 51d33d66324f..6798c55cc91c 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -1646,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;