提交 e08471fc 编写于 作者: Z Zheng Zengkai

BMA: Fix pointer cast compile warning in arm32 builds

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

-----------------------------------------

Fix following build warnings of iBMA driver in arm32 builds:

drivers/net/ethernet/huawei/bma/cdev_veth_drv/virtual_cdev_eth_net.c: In function ‘__make_dmalistbd_b2h_H_2’:
drivers/net/ethernet/huawei/bma/cdev_veth_drv/virtual_cdev_eth_net.c:1266:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  pdmalbase_v[i].slow = lower_32_bits((u64)prxtx_queue->pdmalbase_p);
                                      ^
./include/linux/kernel.h:191:34: note: in definition of macro ‘lower_32_bits’
 #define lower_32_bits(n) ((u32)((n) & 0xffffffff))
                                  ^
drivers/net/ethernet/huawei/bma/cdev_veth_drv/virtual_cdev_eth_net.c:1267:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  pdmalbase_v[i].shi = upper_32_bits((u64)prxtx_queue->pdmalbase_p);
                                     ^
./include/linux/kernel.h:185:35: note: in definition of macro ‘upper_32_bits’
 #define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
                                   ^
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 ab59e2b2
......@@ -4,7 +4,7 @@
config BMA
tristate "Huawei BMA Driver"
depends on 64BIT
help
This driver supports Huawei BMA Software. It is used
to communication between Huawei BMA and BMC software.
\ No newline at end of file
to communication between Huawei BMA and BMC software.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册