From nobody Fri Jul 29 18:47:39 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 4Lvc2h6y3wz4Y1dS; Fri, 29 Jul 2022 18:47:40 +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 4Lvc2g6tx5z3q2H; Fri, 29 Jul 2022 18:47:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120460; 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=wiiN/G1prTeN/sD1CiyToAzNYOIXVpuU3RpcRbMJV4c=; b=pPO+/6GV9bRkS2W1EHLamZojj7/7ojbmMeHBA4HwW61vKTR2Dz3hSHEKTD5VVJXQPNnt4P klRrjDkUHZqOVbUDps/dQ+lLgjIfFuyHjaxSNUZVT4kEsNff6kAJ9gmcjaN66VpYhfKCwv FcoQBS93ES8cml9KUKIQuspShpjSsLCxvNeRYDZ0k2SPZL3JyMJZtrbtL57Kz2GKZbfh7k 3Pm6B+SsPCgPplD/mIBUSMB3oSQLFSWjgcClYID+thyR6gWkT61P7e8rib67C+a4msM4C1 XQJ1Lc6AFWHFXwXyF+2f4F3vHHjEbiGKFhu2CrZHLHHF+yaule5VLyhLViu+CA== 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 4Lvc2g5xFWzm47; Fri, 29 Jul 2022 18:47:39 +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 26TIld3m024400; Fri, 29 Jul 2022 18:47:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIldo5024399; Fri, 29 Jul 2022 18:47:39 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:39 GMT Message-Id: <202207291847.26TIldo5024399@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 08329b98ab2e - stable/13 - Fix unused variable warning in sfxge's ef10_tx.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 08329b98ab2e7191b4e0e9926bff050c5fb4e962 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120460; 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=wiiN/G1prTeN/sD1CiyToAzNYOIXVpuU3RpcRbMJV4c=; b=NZXv0y5MjQ9/AsdUi1TzQr2O+ha8SwLUhHRxqixLaLihAry1Av+agEAF/7X2VvueBpvlkU dmJC80AV7kGSn2J96JvgwliyDVe+pCxBN15N0TWtfk6aGy6RF11SsA6zak/mqHPv4jCRxM Mpak0TEyLfNDGkLhpPqu/P7/thYxx8BMGKaM0qjMu8KvpXRj0m+h5gJyVjwVxXFq6w1H9q kj9N9O3P7nyVUoWzTnDbb2e2hPGVSiYz6RqY/vYjW0XWigUeE6SkKIchhAdxOD1lcljRWd PILOy6X7hLAQcMu8k6MEI4fmVd1rDHBYe8JuXXFMdGrJy2GdFFZxzOBWDWkEjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120460; a=rsa-sha256; cv=none; b=N5qz0aBBf/VaOXyDRp47uNybtoqXQ2s9ukiSW0URKZ4mQp6jhAZZA4JOfousGvn9K3/EMx ie3V8cWxnnFl270c1CZ8rMRC0ZF2mwHWan39dOXdN/+y68yhTnXtqTPxoDWmR2dlP0s71y 2ovH9ZSN8yatRiQI62yT/YDOhrDFdal3xcfivjzIDWpvrEZ5BZblDuL2H12dR4kE1ezbXB iYQ8/uVM/c5OHsHrapP6YltFaRHsQbBpgSenJHMich54VO6g8af68y90wGgLQPwu13vCLg Qx8qzeLOR6TSkwMfYOhRRQ8skCub1PvVaeAAXYZbZHeit/25HJZ8MqWfHHOG6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=08329b98ab2e7191b4e0e9926bff050c5fb4e962 commit 08329b98ab2e7191b4e0e9926bff050c5fb4e962 Author: Dimitry Andric AuthorDate: 2022-07-26 13:17:05 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:30:00 +0000 Fix unused variable warning in sfxge's ef10_tx.c With clang 15, the following -Werror warning is produced: sys/dev/sfxge/common/ef10_tx.c:345:15: error: variable 'eqp' set but not used [-Werror,-Wunused-but-set-variable] efx_qword_t *eqp; ^ The 'eqp' variable is passed as an argument to the EFSYS_BAR_WC_WRITEQ() macro, but currently this macro ignores the argument, similar to its other _esbp argument. Silence the warning by casting the _eqp argument to void in the macro. MFC after: 3 days (cherry picked from commit a79731b9453320af6fcf5ec16fa5de900dadbce8) --- sys/dev/sfxge/common/efsys.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/sfxge/common/efsys.h b/sys/dev/sfxge/common/efsys.h index 37f3deeb2fbc..1ba130c96755 100644 --- a/sys/dev/sfxge/common/efsys.h +++ b/sys/dev/sfxge/common/efsys.h @@ -846,6 +846,7 @@ typedef struct efsys_bar_s { ("not power of 2 aligned")); \ \ (void) (_esbp); \ + (void) (_eqp); \ \ /* FIXME: Perform a 64-bit write */ \ KASSERT(0, ("not implemented")); \