From nobody Tue Apr 05 04:32:29 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 D69F31A9120E; Tue, 5 Apr 2022 04: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 4KXZW135Xxz4gBM; Tue, 5 Apr 2022 04: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=1649133149; 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=AkSn9tJ3tYpa97+Z/yQNCeKIXlQlm4hBSUKY80KP4ak=; b=mwD5biwIfBGD74fXOUInHFLtIy8RmkLF0SI+kDlt0sjMLWistiSJZM3B+nVZXb579EoePT 42lCqQpqsbWqCdp/lt11567k+sNbTubVrtvLEBynlN3K68xU2dyH6O55I07OImjkfxfl76 C6ZRcLzV10mU1bOP0vDOKIidQaQINSzuVqHDeBlqpXpWu5stMbTOQWBoc6lpcqolIs5Meh VZKctFlHLRThg0cLa/Ys6GzRF4r1Nvti8GT9jhqNu/023PzMB8pbljWPBQTOZB2kMyaSW1 jKCbcBMqTW4twLKPmgSqvLdAZYU6+NDJrGzmlxbmg2Sjuk4SsLX2KhsnMIE2Yg== 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 2BFFC1F858; Tue, 5 Apr 2022 04:32:29 +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 2354WTui009063; Tue, 5 Apr 2022 04:32:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WT5m009062; Tue, 5 Apr 2022 04:32:29 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:29 GMT Message-Id: <202204050432.2354WT5m009062@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 09b966ee7c63 - main - Mark cfg as __unused to avoid ifdef soup 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 09b966ee7c6389db635f793377cc50cb2fcb4962 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133149; 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=AkSn9tJ3tYpa97+Z/yQNCeKIXlQlm4hBSUKY80KP4ak=; b=gukZtW4ZSE/sq73yyz5snX8H6pEiR+MYyitDHG22VKYjdT9+ws7b3J3Atw2PTI5jgPLjwM b04VgJB71PPMqZ2ZUQWIq8ZrJPNhpE9Iz0OZyIW/9fF17aBpLCMSyC61WirnwNcGyyKOyj W9xdCv2b7d8Y4LFyQe+CyiJx+lOaSTZw4gC2KaZqMUMmLmMNdfKYv5zR4syJWxcfG+kvxz +i2pjG280F6wivru1aLs3PYeysqm7kuXHgtMibWJNkQeOw8I/E6aGKU5IReucIFB3xIRE4 BrGKZwM0E+SGIWF6pMPYIAz9EUvQ8b9TLEAWjrUrubAQaksgfXs2FzPeu79oUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133149; a=rsa-sha256; cv=none; b=m50IjQL/Kd6sPfw21RPBPFWRT6GZ0sVuxRBq4uOtRZWyaCsbHqJHpW309N7mCa9ZPOiQLr YXyiN89NVLlnLY+Trzuv0HCy9cKlv3wx1drQKJHr1uWg5fqjYnvz/HT2+bu+hG1VcVlMuu PInFG8afOU5NRCQ4oKCyWYjtH+nU3Luix+nUxsPgCZ3pNuO0b0EH+kO+WTz4i90YpC/KGl PnukhBFrm/GK/0nMbleh1lVDZFhJnQ2Un/urRf5XPgvIa1pHlgipPPX4C0XtGD05qUnEqU wKmQNpHSTdGEGDxm46GtazUmU46eDJTEGi0xQPqmcb4c38MHR1IapFStB3ud3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=09b966ee7c6389db635f793377cc50cb2fcb4962 commit 09b966ee7c6389db635f793377cc50cb2fcb4962 Author: Warner Losh AuthorDate: 2022-04-05 02:11:40 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:51 +0000 Mark cfg as __unused to avoid ifdef soup Sponsored by: Netflix --- sys/dev/pci/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 6f3bae13d791..535d4f6f3f3b 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -5645,7 +5645,7 @@ pci_release_resource(device_t dev, device_t child, int type, int rid, { struct pci_devinfo *dinfo; struct resource_list *rl; - pcicfgregs *cfg; + pcicfgregs *cfg __unused; if (device_get_parent(child) != dev) return (BUS_RELEASE_RESOURCE(device_get_parent(dev), child, @@ -5655,7 +5655,7 @@ pci_release_resource(device_t dev, device_t child, int type, int rid, cfg = &dinfo->cfg; #ifdef PCI_IOV - if (dinfo->cfg.flags & PCICFG_VF) { + if (cfg->flags & PCICFG_VF) { switch (type) { /* VFs can't have I/O BARs. */ case SYS_RES_IOPORT: