mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: fix shift overflow warnings on 32 bit systems
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -142,8 +142,10 @@ u32 mt76_mmio_wed_init_rx_buf(struct mtk_wed_device *wed, int size)
|
||||
goto unmap;
|
||||
}
|
||||
|
||||
token = FIELD_PREP(MT_DMA_CTL_TOKEN, token) |
|
||||
FIELD_PREP(MT_DMA_CTL_SDP0_H, addr >> 32);
|
||||
token = FIELD_PREP(MT_DMA_CTL_TOKEN, token);
|
||||
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
|
||||
token |= FIELD_PREP(MT_DMA_CTL_SDP0_H, addr >> 32);
|
||||
#endif
|
||||
desc->token |= cpu_to_le32(token);
|
||||
desc++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user