From nobody Fri Jul 29 18:48:43 2022 X-Original-To: dev-commits-src-all@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 4Lvc3v6Tdlz4Y1w0; Fri, 29 Jul 2022 18:48:43 +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 4Lvc3v5t2Dz3th1; Fri, 29 Jul 2022 18:48:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120523; 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=bKrxhcJq83fFhCnt7K2p6bYrJIo8mF9SGXIj/qJKo3c=; b=muirfwIc4LV2ujjjs3ODC5qk7gw8liv3WqN7bNbRBl5RB72DiRNk20SpBZwHsiaZ6Cp9b2 PEp4vpaXZJT2ph0QoBP7nBpSE92yaB6zpRnLAniit3iW+8pccdT2gOaeFVLX+F5r1JchPr gVhYR91dfqoTa8apzCSEh8jwFzoIFO147SFHahYaH7TcMNJut0vzyogUiY1j/3dGMCb5J1 BmPP1YfYDRHliEHA8gcaZvpVoziKwsNSlFeeKo1ZWhH1jlUM4cgpY6pltKMT6EE640a2Yr 5KSbPYUQ64vpn92wJfxA2ZtvTOGiRniDWKtKdz8XFzh1ketEX237t2l03ffPJg== 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 4Lvc3v4xNdzlh7; Fri, 29 Jul 2022 18:48:43 +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 26TImhGa025754; Fri, 29 Jul 2022 18:48:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImhGL025753; Fri, 29 Jul 2022 18:48:43 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:43 GMT Message-Id: <202207291848.26TImhGL025753@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: c3b55b44b0b7 - stable/12 - Fix unused variable warning in sfxge's ef10_tx.c List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/12 X-Git-Reftype: branch X-Git-Commit: c3b55b44b0b74e3694269445e2e879ede04027fb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120523; 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=bKrxhcJq83fFhCnt7K2p6bYrJIo8mF9SGXIj/qJKo3c=; b=JgAUKfjoYTBMtGIpQudFpmyXq7hA9gjweSDhBZv/qr/WV1S0efZ9lMJcGBpFnQZowVSiJy O7rSbooBfLWJcNiE1g3F6oav3GYNRkWa8WYguBMfmva3IImbeNHZmB7awRhFuYob7F3h+Y UrqULVMHENYJdgB91g7YyWhkqcb85DryR1/UivyKNt4s7Oy26el+dnJC8cWdEj7CkmWfPr +cS2Wo5PQfP2aj4qzadkw+kuQVBIQpW7JQdIpLyxvXHNszoBH0iVLuDMehsNlDoAo1uEbf 6rhiVwxFdUAljIpraAdeCz8SCEpsneJsvYguvkvdk5GSL6GfF8hYGPtn33v1Zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120523; a=rsa-sha256; cv=none; b=hHsv7Icu9dhSyclxhxnwyUfv/Y22y6+3oiGggFQY82OhvUkPoC3qrNVsKZm0sAztS8QFrN T6pU39DbNWYWjMY8eOrV//TRKlwDFKxx3Z7H4td/jUgbLi13Zoty+95uPDkeKxmMNegBDZ PLD+LJxlYqazQmjHR5C9PihbdGC7w/jgZf3exmgi/ri3Apqt5ZUyW2haSEBFbVH+Hd13kB LhiCqPr6Da69/H7IFGj1dMN7jP0PWTfIA/aPnWToYRx8z6rtVCvX5AqPyPzYjmwiEoHe5L 2Mlz84cGuEzUXKdpXDluVhrCwIHdcPJRAHqUQWN+eNStU7mUo7kBFjtEQEg9Cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c3b55b44b0b74e3694269445e2e879ede04027fb commit c3b55b44b0b74e3694269445e2e879ede04027fb Author: Dimitry Andric AuthorDate: 2022-07-26 13:17:05 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:44:39 +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 2736de91b7b5..025f144d5af7 100644 --- a/sys/dev/sfxge/common/efsys.h +++ b/sys/dev/sfxge/common/efsys.h @@ -898,6 +898,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")); \