Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2022 19:30:00 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: e2c5ab094b11 - main - linuxkpi_ieee80211_tx_status: Mark ridx as unused.
Message-ID:  <202204181930.23IJU0Fj017409@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=e2c5ab094b1107fa60b064760c0c7e085899ea8b

commit e2c5ab094b1107fa60b064760c0c7e085899ea8b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-18 19:25:08 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-18 19:29:47 +0000

    linuxkpi_ieee80211_tx_status: Mark ridx as unused.
    
    __diagused only squelches warnings for variables used under
    INVARIANTS, it does not apply to custom debug knobs like
    LINUXKPI_DEBUG_80211.  Use __unused instead.
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index b80d8b62087b..d2608792f8c4 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -4209,7 +4209,7 @@ linuxkpi_ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
 	}
 
 	if (ni != NULL) {
-		int ridx __diagused;
+		int ridx __unused;
 #ifdef LINUXKPI_DEBUG_80211
 		int old_rate;
 



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