Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2022 00:03:33 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: eb147f78a4d9 - main - qlnx: Mark variables only used in debug traces as unused.
Message-ID:  <202204080003.23803Xiq086515@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=eb147f78a4d9f3fddd4f058094f6015da9fb183e

commit eb147f78a4d9f3fddd4f058094f6015da9fb183e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-08 00:01:28 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-08 00:01:28 +0000

    qlnx: Mark variables only used in debug traces as unused.
---
 sys/dev/qlnx/qlnxe/qlnx_os.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index 9e172e27ab35..f0772207289c 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -762,9 +762,9 @@ static int
 qlnx_pci_attach(device_t dev)
 {
 	qlnx_host_t	*ha = NULL;
-	uint32_t	rsrc_len_reg = 0;
+	uint32_t	rsrc_len_reg __unused = 0;
 	uint32_t	rsrc_len_dbells = 0;
-	uint32_t	rsrc_len_msix = 0;
+	uint32_t	rsrc_len_msix __unused = 0;
 	int		i;
 	uint32_t	mfw_ver;
 	uint32_t	num_sp_msix = 0;
@@ -5088,7 +5088,7 @@ qlnx_dma_alloc_coherent(void *ecore_dev, bus_addr_t *phys, uint32_t size)
 {
 	qlnx_dma_t	dma_buf;
 	qlnx_dma_t	*dma_p;
-	qlnx_host_t	*ha;
+	qlnx_host_t	*ha __unused;
 
 	ha = (qlnx_host_t *)ecore_dev;
 
@@ -6508,7 +6508,7 @@ qlnx_start_vport(struct ecore_dev *cdev,
 {
         int					rc, i;
 	struct ecore_sp_vport_start_params	vport_start_params = { 0 };
-	qlnx_host_t				*ha;
+	qlnx_host_t				*ha __unused;
 
 	ha = (qlnx_host_t *)cdev;
 
@@ -6984,7 +6984,7 @@ qlnx_stop_queues(qlnx_host_t *ha)
 
                 /* Stop the Tx Queue(s)*/
                 for (tc = 0; tc < ha->num_tc; tc++) {
-			int tx_queue_id;
+			int tx_queue_id __unused;
 
 			tx_queue_id = tc * ha->num_rss + i;
 			rc = ecore_eth_tx_queue_stop(p_hwfn,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204080003.23803Xiq086515>