From nobody Thu Dec 09 16:37:31 2021 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 9634D18D2807; Thu, 9 Dec 2021 16:37:31 +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 4J907b278pz560f; Thu, 9 Dec 2021 16:37:31 +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 28C3F1C42; Thu, 9 Dec 2021 16:37:31 +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 1B9GbV9S058434; Thu, 9 Dec 2021 16:37:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9GbVWn058433; Thu, 9 Dec 2021 16:37:31 GMT (envelope-from git) Date: Thu, 9 Dec 2021 16:37:31 GMT Message-Id: <202112091637.1B9GbVWn058433@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 8c3149be5486 - main - amd64: plug set-but-not-used vars in pmap 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8c3149be5486e999c7d08585810e4dda5e3c20a3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639067851; 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=IkYIlDmHyTCMzNJ3UfAl1tI8rMz9wybN/svbNC4AjzY=; b=DenVTOXBmUSeRM0ODBirNhSSedxpiXxGFhNyEQU7T6/xZyXtT0ZkMlfYKiQFNq1OjYH3Sy J07F89z32Wrl52IZw2wjx6MdMihzE+1ewfdIh2wtWVm2UmBZDr06One7EjeOcEbx/DT83/ bfjOX6Ci44kWgsLy0S0NDxZlrSBW9ZbTwdvTPI+Xu9vzd0+mBAH7gbILxXoSzbXIOL9aLe DhqAXaFm8ENpW5v2dg0Q9F25IYhc1UeB0yW8htgUcAdvCxb4iK5xJPpLAx6fhXJD0bo41Z P9nZbb2hN8kww56mA8kR1DmKo5xjKOFEkMHJsJ3Cqv8FBCroeZ2HBxuQaFyK7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639067851; a=rsa-sha256; cv=none; b=L19SzNvAUvcFZ0KumV9oiy+1ISkPYtoKEGJ47u/YXByLxQbYUY+jwgKad8Gzc3ARPUZNgE inJnxO/syeZzCNSm3PaVrCjsc1NhZN1X5XieqrE35fGI2imJq6M8KRimpF3TF86pT0sNOK tahOQtxgwujuTWTVysbTmYIMF8rjX7/GBkxh3Jm5twIDf/UcW12bSrjXsqqWAJsLdec+Qh gJOdyWz3WgfjLvecCKRutx9EmSdMypOnKxjNcwHn5UvZusWQ3VooDjbzb4iV+5n9sIJlmI EINPBYOzIJ23r8QrzWy9aiFceHQks6pj4fo9iOWDDS9wNSvAAVHkFvHWz/rQFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=8c3149be5486e999c7d08585810e4dda5e3c20a3 commit 8c3149be5486e999c7d08585810e4dda5e3c20a3 Author: Mateusz Guzik AuthorDate: 2021-12-09 16:20:45 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 16:37:26 +0000 amd64: plug set-but-not-used vars in pmap Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/amd64/amd64/pmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 153664698e43..f6efce1303d4 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -3732,7 +3732,8 @@ pmap_flush_cache_phys_range(vm_paddr_t spa, vm_paddr_t epa, vm_memattr_t mattr) { pt_entry_t *pte; vm_offset_t vaddr; - int error, pte_bits; + int error __diagused; + int pte_bits; KASSERT((spa & PAGE_MASK) == 0, ("pmap_flush_cache_phys_range: spa not page-aligned")); @@ -7729,7 +7730,7 @@ pmap_unwire(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) pml4_entry_t *pml4e; pdp_entry_t *pdpe; pd_entry_t *pde; - pt_entry_t *pte, PG_V, PG_G; + pt_entry_t *pte, PG_V, PG_G __diagused; PG_V = pmap_valid_bit(pmap); PG_G = pmap_global_bit(pmap);