From nobody Thu Jan 06 06:46:24 2022 X-Original-To: dev-commits-src-main@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 00F0E1932376; Thu, 6 Jan 2022 06:46:25 +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 4JTxhc5xyLz4V7R; Thu, 6 Jan 2022 06:46:24 +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 449931B1B0; Thu, 6 Jan 2022 06:46:24 +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 2066kOjn064672; Thu, 6 Jan 2022 06:46:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2066kORf064671; Thu, 6 Jan 2022 06:46:24 GMT (envelope-from git) Date: Thu, 6 Jan 2022 06:46:24 GMT Message-Id: <202201060646.2066kORf064671@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 3c94280825c7 - main - Silent some warnings for i386 kernel build List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 3c94280825c78c0ed00e1dcc704fac8a04f933e3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641451585; 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=L/RWZf46K7t4ipvcUaWdxMyYthr1TKDMJ5FqcL/Xk6c=; b=r4UYlp0Xgi9IrVHgVR2SO5Rg6cT9nlnkNA1H/K89ZRH2LyaiaingqjK/Rqcy/J61uNAUth ZzSQ/KeCy5aBvzEYlFbLK6R7jEBj3z/GWIN5OLkq8gqxjVW7Y/7ZvYkdF4USBgfLbXbFKC f9bmTkwZcHV9UXlsN0FA6s0ImaUgNqX5DWtx16kD0ody3th5aVG2xDlE5iqov6WlxDq71C k3XU7g644DO4ltTsOhAvo4aHFaCNGXCwkg7LZuMjK5HolCFpPjlRzJCAVN7oCEV+rIBmKE 7LUYGwE9GbqAN4Ru2U8A9KAGPU8uT6pA4HLfCOJ19emDqiraIWk3zrOxGjJGZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641451585; a=rsa-sha256; cv=none; b=rK62ZWMXXg9TQL4BQj+TaKMAz0C/YbbXq9lDo5Pkxst2V/ZlziM9XB1TLcK9nV91nnZJPa wul9h9adMhPAgO3O49pTJkPuyjAdGo/gl9iPuNlVtyXwvGxDH06U+FxoIi8PiU2QY9Ev8c eZssjs9gTMSl4pyHruJZ7p6iPPTiPjm1cc9qdN+v1sLOgQdiY5sQsf6TAmg6WuJ2Q+2zt1 QR2PryEiDrJqjnypbpmejEy4nSXkgl1iPSUpnoKHWZPEwvf1VhzH1dFMwaaEq8mfbgG90T +gcRdnEns7JOAzrNVEGGpM6VkAmToluqRvo9tP7ouBE/p3uunYeEFxHxD+rQWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3c94280825c78c0ed00e1dcc704fac8a04f933e3 commit 3c94280825c78c0ed00e1dcc704fac8a04f933e3 Author: Konstantin Belousov AuthorDate: 2022-01-06 04:45:49 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-06 05:53:04 +0000 Silent some warnings for i386 kernel build Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 f7c0cb6b68ec..4644083b6408 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++;