git: 6edecf52def6 - main - iwx: drop #pragma directives
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Nov 2026 19:56:35 UTC
The branch main has been updated by adrian:
URL: https://cgit.FreeBSD.org/src/commit/?id=6edecf52def6d0c89e4ab03517f4f6aa5f157825
commit 6edecf52def6d0c89e4ab03517f4f6aa5f157825
Author: Idwer Vollering <vidwer+fbsdbugs@gmail.com>
AuthorDate: 2026-11-22 19:43:42 +0000
Commit: Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-11-22 19:56:17 +0000
iwx: drop #pragma directives
Differential Revision: https://reviews.freebsd.org/D61822
---
sys/dev/iwx/if_iwxreg.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sys/dev/iwx/if_iwxreg.h b/sys/dev/iwx/if_iwxreg.h
index 43781a1421b8..48673cb71820 100644
--- a/sys/dev/iwx/if_iwxreg.h
+++ b/sys/dev/iwx/if_iwxreg.h
@@ -7890,15 +7890,12 @@ iwx_rx_packet_len(const struct iwx_rx_packet *pkt)
return le32toh(pkt->len_n_flags) & IWX_FH_RSCSR_FRAME_SIZE_MSK;
}
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunused-function"
-static uint32_t
+static inline uint32_t
iwx_rx_packet_payload_len(const struct iwx_rx_packet *pkt)
{
return iwx_rx_packet_len(pkt) - sizeof(pkt->hdr);
}
-#pragma clang diagnostic pop
#define IWX_MIN_DBM -100
#define IWX_MAX_DBM -33 /* realistic guess */