Skip to content
Commit deee4530 authored by Quanyang Wang's avatar Quanyang Wang Committed by Bruce Ashfield
Browse files

net: emaclite: fix compile warning in BUFFER_ALIGN



Use ulong instead of u32 to fix compile warning when building
kernel for arm64 (zynqmp):

drivers/net/ethernet/xilinx/xilinx_emaclite.c:98:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   98 | #define BUFFER_ALIGN(adr) ((ALIGNMENT - ((u32)adr)) % ALIGNMENT)
      |                                          ^

Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent e9a81ba6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment