git: e2c5ab094b11 - main - linuxkpi_ieee80211_tx_status: Mark ridx as unused.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Apr 2022 19:30:00 UTC
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;