mirror_ubuntu-kernels/drivers/net/wireless/mediatek/mt76/mt76x2
Borislav Petkov dbc2b17647 mt76: Fix undefined behavior due to shift overflowing the constant
Fix:

  drivers/net/wireless/mediatek/mt76/mt76x2/pci.c: In function ‘mt76x2e_probe’:
  ././include/linux/compiler_types.h:352:38: error: call to ‘__compiletime_assert_946’ \
	declared with attribute error: FIELD_PREP: mask is not constant
    _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)

See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory
details as to why it triggers with older gccs only.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: Ryder Lee <ryder.lee@mediatek.com>
Cc: Shayne Chen <shayne.chen@mediatek.com>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220405151517.29753-9-bp@alien8.de
2022-04-10 15:19:48 +03:00
..
eeprom.c mt76: move hw mac_addr in mt76_phy 2020-12-04 14:31:15 +01:00
eeprom.h mt76: move channel state to struct mt76_phy 2020-02-14 10:03:08 +01:00
init.c mt76: mt76x02: introduce SAR support 2021-12-19 15:24:00 +01:00
Kconfig
mac.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mac.h mt76: mt76x2: move mt76x02_mac_reset_counters in mt76x02_mac_start 2019-11-20 13:23:48 +01:00
Makefile mt76: mt76x2: get rid of leftover target 2020-02-14 10:06:04 +01:00
mcu.c mt76: move chainmask in mt76_phy 2021-01-26 20:07:48 +01:00
mcu.h mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
mt76x2.h mt76: mt76x02: introduce SAR support 2021-12-19 15:24:00 +01:00
mt76x2u.h mt76: mt76x02u: move mt76x02u_mac_start in mt76x02-usb module 2019-11-20 13:23:48 +01:00
pci_init.c mt76: mt76x02: introduce SAR support 2021-12-19 15:24:00 +01:00
pci_main.c mt76: mt76x02: introduce SAR support 2021-12-19 15:24:00 +01:00
pci_mcu.c mt76: implement .mcu_parse_response in struct mt76_mcu_ops 2020-12-04 13:46:14 +01:00
pci_phy.c mt76: move txpower and antenna mask to struct mt76_phy 2020-02-14 10:03:09 +01:00
pci.c mt76: Fix undefined behavior due to shift overflowing the constant 2022-04-10 15:19:48 +03:00
phy.c mt76: add multiple wiphy support to mt76_get_min_avg_rssi 2020-02-14 10:03:09 +01:00
usb_init.c mt76: mt76x02: introduce SAR support 2021-12-19 15:24:00 +01:00
usb_mac.c mt76: move state from struct mt76_dev to mt76_phy 2020-02-14 10:03:08 +01:00
usb_main.c mt76: mt76x02: introduce SAR support 2021-12-19 15:24:00 +01:00
usb_mcu.c mt76: switch to SPDX tag instead of verbose boilerplate text 2019-09-05 17:42:31 +02:00
usb_phy.c mt76: move state from struct mt76_dev to mt76_phy 2020-02-14 10:03:08 +01:00
usb.c mt76: usb: introduce __mt76u_init utility routine 2022-03-16 17:40:22 +01:00