linux/drivers/net/wireless
Nathan Chancellor 237b47efcd rtw88: Make RA_MASK macros ULL
Clang warns about the definitions of these macros (full warnings trimmed
for brevity):

drivers/net/wireless/realtek/rtw88/main.c:524:15: warning: signed shift
result (0x3FF00000000) requires 43 bits to represent, but 'int' only has
32 bits [-Wshift-overflow]
                        ra_mask &= RA_MASK_VHT_RATES | RA_MASK_OFDM_IN_VHT;
                                   ^~~~~~~~~~~~~~~~~
drivers/net/wireless/realtek/rtw88/main.c:527:15: warning: signed shift
result (0xFF0000000) requires 37 bits to represent, but 'int' only has
32 bits [-Wshift-overflow]
                        ra_mask &= RA_MASK_HT_RATES | RA_MASK_OFDM_IN_HT_5G;
                                   ^~~~~~~~~~~~~~~~

Given that these are all used with ra_mask, which is of type u64, we can
just declare the macros to be ULL as well.

Fixes: e3037485c6 ("rtw88: new Realtek 802.11ac driver")
Link: https://github.com/ClangBuiltLinux/linux/issues/467
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
History 2019-05-02 19:26:39 +03:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2019-04-19 10:20:10 +03:00
atmel at76c50x-usb: Don't register led_trigger if usb_register_driver failed 2019-04-25 19:52:14 +03:00
broadcom brcmfmac: print firmware messages after a firmware crash 2019-05-01 18:27:31 +03:00
cisco Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
intel iwlwifi: dbg_ini: check for valid region type during regions parsing 2019-04-29 18:42:48 +03:00
intersil p54: drop device reference count if fails to enable device 2019-04-25 19:56:56 +03:00
marvell mwl8k: move spin_lock_bh to spin_lock in tasklet 2019-04-26 14:57:15 +03:00
mediatek mt76: mt7603: dynamically alloc mcu req in mt7603_mcu_set_eeprom 2019-05-01 13:04:00 +02:00
quantenna qtnfmac: modify debugfs to support multiple cards 2019-04-26 14:53:13 +03:00
ralink rt2x00: add RT3883 support 2019-04-25 19:58:28 +03:00
realtek rtw88: Make RA_MASK macros ULL 2019-05-02 19:26:39 +03:00
rsi rsi: miscallaneous changes for 9116 and common 2019-04-25 19:44:29 +03:00
st net: cw1200: fix a NULL pointer dereference 2019-04-25 19:40:09 +03:00
ti wlcore: simplify/fix/optimize reg_ch_conf_pending operations 2019-04-25 20:12:10 +03:00
zydas zd1211rw: use struct_size() helper 2019-04-25 19:49:50 +03:00
Kconfig mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
mac80211_hwsim.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-04-17 11:26:25 -07:00
mac80211_hwsim.h mac80211_hwsim: allow configurable cipher types 2018-11-09 11:36:15 +01:00
Makefile mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
ray_cs.c ray_cs: use remove_proc_subtree to simplify procfs code 2019-04-25 19:38:52 +03:00
ray_cs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rayctl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rndis_wlan.c rndis_wlan: use struct_size() helper 2019-04-25 19:37:44 +03:00
virt_wifi.c virt_wifi: Remove REGULATORY_WIPHY_SELF_MANAGED 2019-02-11 17:10:48 +01:00
wl3501.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wl3501_cs.c wl3501_cs: fix spelling mistake: "Insupported" -> "Unsupported" 2017-07-28 18:06:31 +03:00