From nobody Sun Jan 09 01:20:53 2022 X-Original-To: dev-commits-src-branches@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 001EE193C359; Sun, 9 Jan 2022 01:20:54 +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 4JWfKd5Bgcz3JxF; Sun, 9 Jan 2022 01:20:53 +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 926B612B4; Sun, 9 Jan 2022 01:20:53 +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 2091KrXH097339; Sun, 9 Jan 2022 01:20:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2091Krp6097328; Sun, 9 Jan 2022 01:20:53 GMT (envelope-from git) Date: Sun, 9 Jan 2022 01:20:53 GMT Message-Id: <202201090120.2091Krp6097328@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: aa3b17232842 - stable/13 - Silent some warnings for i386 kernel build List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: aa3b17232842d484fbb1bfe98f089eb098f7899a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641691253; 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=r0FP0AsWhE2rTQFzwqqhurtSP6/pEVv2jRzbJkxtNXE=; b=CypV/Qag1UzFlwurOxvmOP73xaySG4B3TcnsO/7yS2z/vGAPFkJ2AK8BF/5Ao5atjniJot Oj4AMMROAKkvdq3y3pIHuW0YSYFFcp3R2XJEQqFYfsbYuEiLbwHiffOjdflf90E8/g/Bft abKuezs1DQfjCi0keD/AUO+0OlZbApJ/Y27VJycgRJpJAm8vpy4xr8HNO0hS75iZctyg1+ /6wgCp/oSaGLTVn22QQ5LpcC0NLNz3JYJyo8T69lJ5A3U+Ok6bIMYRKUXf1k6LJxQw8qVg 397aD40GL8yK4BBeve14ztC7OzL3yVIwCu1YiYrczFb+HhEZKX+1qmzYSKiDSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641691253; a=rsa-sha256; cv=none; b=karYZTPc/7fjvAeKJQKPHPDtQgRFPR8Gd282jmkiDG0rL3mDeDV8Fqq5/MPQMDkwMA9qEl D4uOw5BEmr0SifXXa3PSG67aRR6SfbVG59QRjGL6nMUTjxto68CWqZ0lT4waDqrnqsTT9d 6+S6+JWDh1nMNbQQAlbH2+BXni/TbqmFPXIdqRLPoJw8OBGWX+7lTv49DZ8+a9oHEypkXu Si/2Js4UZERpdXskIHE0kJZWgP62JXtO6I2A4YOsqivPqk1MMpeXNcxf/VJSYgagBFZCAS ZBY4D8ho74m3yBFm6mnvtyi4HfRjdkg66P0hK4+yakwWWXBmrqmaQrxDgmjwdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=aa3b17232842d484fbb1bfe98f089eb098f7899a commit aa3b17232842d484fbb1bfe98f089eb098f7899a Author: Konstantin Belousov AuthorDate: 2022-01-06 04:45:49 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-09 01:20:22 +0000 Silent some warnings for i386 kernel build (cherry picked from commit 3c94280825c78c0ed00e1dcc704fac8a04f933e3) --- sys/i386/i386/minidump_machdep_base.c | 3 +-- sys/i386/i386/pmap.c | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/i386/i386/minidump_machdep_base.c b/sys/i386/i386/minidump_machdep_base.c index a3f09228fa2d..ce26e339d2be 100644 --- a/sys/i386/i386/minidump_machdep_base.c +++ b/sys/i386/i386/minidump_machdep_base.c @@ -162,7 +162,7 @@ cpu_minidumpsys(struct dumperinfo *di, const struct minidumpstate *state) uint64_t pa; pd_entry_t *pd, pde; pt_entry_t *pt, pte; - int j, k; + int k; struct minidumphdr mdhdr; struct msgbuf *mbp; @@ -184,7 +184,6 @@ cpu_minidumpsys(struct dumperinfo *di, const struct minidumpstate *state) */ ptesize += PAGE_SIZE; pd = IdlePTD; /* always mapped! */ - j = va >> PDRSHIFT; pde = pte_load(&pd[va >> PDRSHIFT]); if ((pde & (PG_PS | PG_V)) == (PG_PS | PG_V)) { /* This is an entire 2M page. */ diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 52008969308b..af5b5ac73ce3 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -619,7 +619,7 @@ static void __CONCAT(PMTYPE, bootstrap)(vm_paddr_t firstaddr) { vm_offset_t va; - pt_entry_t *pte, *unused; + pt_entry_t *pte, *unused __unused; struct pcpu *pc; u_long res; int i; @@ -3493,7 +3493,7 @@ pmap_promote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va) { pd_entry_t newpde; pt_entry_t *firstpte, oldpte, pa, *pte; - vm_offset_t oldpteva; + vm_offset_t oldpteva __diagused; vm_page_t mpte; PMAP_LOCK_ASSERT(pmap, MA_OWNED); @@ -6252,7 +6252,6 @@ __CONCAT(PMTYPE, sysctl_kmaps)(SYSCTL_HANDLER_ARGS) pd_entry_t pde; pt_entry_t *pt, pte; vm_offset_t sva; - vm_paddr_t pa; int error; u_int i, k; @@ -6289,7 +6288,6 @@ __CONCAT(PMTYPE, sysctl_kmaps)(SYSCTL_HANDLER_ARGS) i += NPTEPG; continue; } - pa = pde & PG_FRAME; if ((pde & PG_PS) != 0) { sysctl_kmaps_check(sb, &range, sva, pde, 0); range.pdes++;