提交 081386c0 编写于 作者: D Duanqiang Wen

openeuler: net: txgbe: fix arm 32bit arch compile warning.

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I61PSD
CVE: NA

Fix txgbe_main.c warning: right shift count >= width of type warning.
Signed-off-by: NDuanqiang Wen <duanqiangwen@net-swift.com>
上级 889c5867
...@@ -3705,7 +3705,11 @@ void txgbe_configure_isb(struct txgbe_adapter *adapter) ...@@ -3705,7 +3705,11 @@ void txgbe_configure_isb(struct txgbe_adapter *adapter)
wr32(hw, TXGBE_PX_ISB_ADDR_L, wr32(hw, TXGBE_PX_ISB_ADDR_L,
adapter->isb_dma & DMA_BIT_MASK(32)); adapter->isb_dma & DMA_BIT_MASK(32));
#ifdef CONFIG_64BIT
wr32(hw, TXGBE_PX_ISB_ADDR_H, adapter->isb_dma >> 32); wr32(hw, TXGBE_PX_ISB_ADDR_H, adapter->isb_dma >> 32);
#else
wr32(hw, TXGBE_PX_ISB_ADDR_H, 0);
#endif
} }
void txgbe_configure_port(struct txgbe_adapter *adapter) void txgbe_configure_port(struct txgbe_adapter *adapter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册