linux/drivers/net/wireless/realtek
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>
2019-05-02 19:26:39 +03:00
..
rtl8xxxu rtl8xxxu: Fix missing break in switch 2018-11-06 18:58:41 +02:00
rtl818x rtl818x_pci: Remove set but not used variables 'io_addr, mem_addr' 2019-02-19 17:17:42 +02:00
rtlwifi rtlwifi: rtl8192cu: remove set but not used variable 'turbo_scanoff' 2019-04-26 14:58:53 +03:00
rtw88 rtw88: Make RA_MASK macros ULL 2019-05-02 19:26:39 +03:00
Kconfig rtw88: new Realtek 802.11ac driver 2019-04-30 19:43:37 +03:00
Makefile rtw88: new Realtek 802.11ac driver 2019-04-30 19:43:37 +03:00