Unverified Commit 45462d25 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!253 [5.10] [bugfix] : fix arm32 compiler error ERROR and warning

Merge Pull Request from: @duanqiangwen 
 
This PR is to fix arm32 compiler error ERROR and warning.

1.fix arm32 compile error because 64bit div operate in txgbe_get_thermal_sensor_data function
2.fix txgbe_sysfs compile warning.

Kernel Issue:
#I5Y6RT:txgbe相关bugfix合入,保持与北京网迅科技发布的txgbe 1.2.3版本out-of-tree module同步:txgbe相关bugfix合入,保持与北京网迅科技发布的txgbe 1.2.3版本out-of-tree module同步

Compile Failed Log:
- build failed:

- <line too long ...>

srab@18007000/ports/port@5: Relying on default #address-cells value

arch/arm/boot/dts/bcm53015-meraki-mr26.dts:124.10-133.5: Warning (avoid_default_addr_size): /srab@18007000/ports/port@5: Relying on default #size-cells value

drivers/net/ethernet/netswift/txgbe/txgbe_main.c: In function ‘txgbe_configure_isb’:

drivers/net/ethernet/netswift/txgbe/txgbe_main.c:3708:49: warning: right shift count >= width of type [-Wshift-count-overflow]

  wr32(hw, TXGBE_PX_ISB_ADDR_H, adapter->isb_dma >> 32);

drivers/net/ethernet/netswift/txgbe/txgbe_sysfs.c:13:1: warning: "/*" within comment [-Wcomment]

 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */

  

ERROR: modpost: "__aeabi_ldivmod" [drivers/net/ethernet/netswift/txgbe/txgbe.ko] undefined!

ERROR: modpost: "__aeabi_uldivmod" [drivers/net/ethernet/netswift/txgbe/txgbe.ko] undefined!

make[1]: *** [modules-only.symvers] Error 1

make[1]: *** Deleting file 'modules-only.symvers'

make: *** [modules] Error 2 
 
Link:https://gitee.com/openeuler/kernel/pulls/253

 
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 69cb66eb 30bc83a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment