git: ffefb636273d - stable/13 - linuxkpi: Add parentheses to pacify -Wparentheses warnings from GCC.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 May 2022 00:30:06 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=ffefb636273d044be67919f512d1534cd336c675
commit ffefb636273d044be67919f512d1534cd336c675
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-02-07 21:43:22 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-11 00:06:44 +0000
linuxkpi: Add parentheses to pacify -Wparentheses warnings from GCC.
Reviewed by: bz, emaste
Differential Revision: https://reviews.freebsd.org/D34145
(cherry picked from commit 7043ca9140d2bf4c42371e25716298d24da54cd0)
---
sys/compat/linuxkpi/common/include/net/mac80211.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h
index 857fa0a9bb03..7a8306919194 100644
--- a/sys/compat/linuxkpi/common/include/net/mac80211.h
+++ b/sys/compat/linuxkpi/common/include/net/mac80211.h
@@ -111,7 +111,7 @@ enum ieee80211_bss_changed {
};
/* 802.11 Figure 9-256 Suite selector format. [OUI(3), SUITE TYPE(1)] */
-#define WLAN_CIPHER_SUITE_OUI(_oui, _x) ((_oui) << 8 | (_x) & 0xff)
+#define WLAN_CIPHER_SUITE_OUI(_oui, _x) (((_oui) << 8) | ((_x) & 0xff))
/* 802.11 Table 9-131 Cipher suite selectors. */
/* 802.1x suite B 11 */