OrangePi_CM5/drivers/net/wireless/mediatek/mt76
Borislav Petkov 202748f441 mt76: Fix undefined behavior due to shift overflowing the constant
[ Upstream commit dbc2b1764734857d68425468ffa8486e97ab89df ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 13:53:53 +02:00
..
mt76x0
…
mt76x2 mt76: Fix undefined behavior due to shift overflowing the constant 2022-04-27 13:53:53 +02:00
mt7603 mt76: mt7603: check sta_rates pointer in mt7603_sta_rate_tbl_update 2022-04-08 14:40:14 +02:00
mt7615 mt76: mt7615: Fix assigning negative values to unsigned variable 2022-04-13 21:00:58 +02:00
mt7915 mt76: mt7915: use proper aid value in mt7915_mcu_sta_basic_tlv 2022-04-08 14:40:14 +02:00
Kconfig
…
Makefile
…
agg-rx.c
…
debugfs.c
…
dma.c mt76: dma: initialize skip_unmap in mt76_dma_rx_fill 2022-04-13 21:00:56 +02:00
dma.h
…
eeprom.c
…
mac80211.c
…
mcu.c
…
mmio.c
…
mt76.h
…
mt76x02.h
…
mt76x02_beacon.c
…
mt76x02_debugfs.c
…
mt76x02_dfs.c
…
mt76x02_dfs.h
…
mt76x02_dma.h
…
mt76x02_eeprom.c
…
mt76x02_eeprom.h
…
mt76x02_mac.c mt76: mt76x02: fix endianness warnings in mt76x02_mac.c 2021-11-18 14:04:08 +01:00
mt76x02_mac.h
…
mt76x02_mcu.c
…
mt76x02_mcu.h
…
mt76x02_mmio.c
…
mt76x02_phy.c
…
mt76x02_phy.h
…
mt76x02_regs.h
…
mt76x02_trace.c
…
mt76x02_trace.h
…
mt76x02_txrx.c
…
mt76x02_usb.h
…
mt76x02_usb_core.c
…
mt76x02_usb_mcu.c
…
mt76x02_util.c
…
pci.c
…
sdio.c
…
testmode.c
…
testmode.h
…
trace.c
…
trace.h
…
tx.c
…
usb.c
…
usb_trace.c
…
usb_trace.h
…
util.c
…
util.h
…