From nobody Tue Jul 26 18:00:30 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 4Lsl7g1MSTz4XgP2; Tue, 26 Jul 2022 18:00: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 4Lsl7g0s12z3k2f; Tue, 26 Jul 2022 18:00:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858431; 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=y2TvRVm/QHFNiQPfSXECZJudCalIg/od+/vqZfEH+/0=; b=vwznD08wAPXLeUxs0uzlMFh+c1hhNwW4gKxPUkxslpbDEj3QqPka1jYXCqij5xv0w6jhf3 Dw3dSCQ7Non1lCxZjPmOOcoaKMIfPT2dljz7JOJpzLaGjdtAuNgQFybyOcDrxVDR2aW1m8 DXTPc2Uu/zIo+I/oeJBVZ80YwPPD9WlV0LatwtQFYlIAXFq+FR092bRvR99+HNqw6uIUdO 2k1vIarv6W1Te2KmQ8EWRAvw6TEgcnf6Cr+Vt16YaUxffESYuX25S/Sy/5sf0gwlwXvUN/ 34p7jeLTJNpN4MWaWMBKgOus7al5Yu7LqfZXfV/if7/kaXOP53J9q7oNsG7edw== 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 4Lsl7f6xT9zmCL; Tue, 26 Jul 2022 18:00:30 +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 26QI0UMD005822; Tue, 26 Jul 2022 18:00:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QI0Uvo005821; Tue, 26 Jul 2022 18:00:30 GMT (envelope-from git) Date: Tue, 26 Jul 2022 18:00:30 GMT Message-Id: <202207261800.26QI0Uvo005821@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: a79731b94533 - main - 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/main X-Git-Reftype: branch X-Git-Commit: a79731b9453320af6fcf5ec16fa5de900dadbce8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858431; 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=y2TvRVm/QHFNiQPfSXECZJudCalIg/od+/vqZfEH+/0=; b=IMtvrSGAgxNneQxetx0ZLk6aDkRnAd3FWGUzy36hdDTdPTGNoSnbYimWjnTq3olBZuOUY1 8+W2U6l6A/oT2YaiHUdJOhUKauX9ldUJvUX2gZvriiefxKF7N1d7Q4q6Yi1w1RiWJ6Ydoc 9spFPwhcB/u39CF8zojYzy0uCxgEcf7hRdeIgkk+1uDJHbfHgrl+v2jlWLNtOaNFvVtH50 rEDomwBfb/m+E7C1tlJLviNw1IIaSnIFktKS9d2cdKWTzbmyWt0rrZ6tZi6DbNZ03MeB0b ydxOvhNiPq6jVQg+zMpAhy488bqSmqQ1tp2ugxSdfnntBaXoZa66QbxJX/HyqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658858431; a=rsa-sha256; cv=none; b=MLs3KHdqOonOjsEmkBRhL1rHIZrDGlOSADJ6OKCJmwiDtNZHYzxmbXWA3JNmYZ6k5GMQOs cl1sjbXX3kiYr2TWYAZSe5um/wTVXEJVpEEQNpepWk/R/d+TzGF2TZ6qRRJxDcg7+7OumB RI2phsttg3sRw4YJoJ0uGUr27/F9CEC41WWplg0/K2msnvu7est4U7Ze6BA78sZh5sOseT JTOLiS9VO6t0VF3OmHhOpKF59CA5MwaySlGJS0VlUB2Pfs1pagJ6I1gx6o6kil6JozmKg3 aGhX7qMGU6uWhsmVUqLOipb3vwZ1CF6+5UFaVrc1F63PHStlTimanRmbfvn0cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a79731b9453320af6fcf5ec16fa5de900dadbce8 commit a79731b9453320af6fcf5ec16fa5de900dadbce8 Author: Dimitry Andric AuthorDate: 2022-07-26 13:17:05 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 17:59:56 +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 --- 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")); \