net/bnx2x: fix the meson compile issue
PATCH 1/1 net/bnx2x: fix the meson compile issue
The definition is conflicting with that of the compiler, as show the following error: ../drivers/net/bnx2x/bnx2x_osal.h:27:17: error:
conflicting types for ‘uint64_t’ #define __le64 uint64_t ^~~~ In file included from /usr/include/stdint.h:37, from /usr/lib/gcc/aarch64-linux-gnu/8/include/stdint.h:9, from ../lib/librte_eal/common/include/arch/arm/rte_byteorder.h:16, from ../drivers/net/bnx2x/bnx2x.h:17, from ../drivers/net/bnx2x/bnx2x_rxtx.c:8:/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h:27:20: note: previous declaration of ‘uint64_t’ was here
typedef __uint64_t uint64_t;
The fix is to remove the duplicate definition.
--- drivers/net/bnx2x/bnx2x_osal.h | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/bnx2x/bnx2x_osal.h +0 -4
@@ -22,8 +22,4 @@#undef __LITTLE_ENDIAN#endif -#define __le16 uint16_t -#define __le32 uint32_t -#define __le64 uint64_t -#endif /* BNX2X_OSAL_H */
Signature · 1 line
2.7.4
Quoted 11 lines · Gavin Hu
The definition is conflicting with that of the compiler, as show the following error:
../drivers/net/bnx2x/bnx2x_osal.h:27:17: error:
conflicting types for ‘uint64_t’ #define__le64uint64_t^~~~ In file included from/usr/include/stdint.h:37, from/usr/lib/gcc/aarch64-linux-gnu/8/include/stdint.h:9, from../lib/librte_eal/common/include/arch/arm/rte_byteorder.h:16, from../drivers/net/bnx2x/bnx2x.h:17, from../drivers/net/bnx2x/bnx2x_rxtx.c:8:/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h:27:20: note: previous declaration of ‘uint64_t’ was here
typedef__uint64_tuint64_t;
Quoted 6 lines
The fix is to remove the duplicate definition.
Fixes 38dff79ba736 ("net/bnx2x: update HSI")Signed-off-by Gavin Hu <[email protected]>
Hi Rasesh, Shahed,
The driver is causing the build error for the arm, I remember same issue was valid for x86 and fixed later but seems not fixed for arm.
Can you please check for the build error, if we can't find a solution, may have to merge this patch.
Thanks,
ferruh
Quoted 18 lines
--- drivers/net/bnx2x/bnx2x_osal.h | 4 ---- 1 file changed, 4 deletions(-)drivers/net/bnx2x/bnx2x_osal.h +0
-4@@ -22,8 +22,4 @@#undef __LITTLE_ENDIAN#endif -#define __le16 uint16_t -#define __le32 uint32_t -#define __le64 uint64_t -#endif /* BNX2X_OSAL_H */
Quoted 22 lines
From: Ferruh Yigit <[email protected]>
Sent: Wednesday, October 30, 2019 4:23 AMQuoted 11 lines · Gavin Hu
The definition is conflicting with that of the compiler, as show the following error:
../drivers/net/bnx2x/bnx2x_osal.h:27:17: error:
conflicting types for ‘uint64_t’ #define__le64uint64_t^~~~ In file included from/usr/include/stdint.h:37, from/usr/lib/gcc/aarch64-linux-gnu/8/include/stdint.h:9, from../lib/librte_eal/common/include/arch/arm/rte_byteorder.h:16, from../drivers/net/bnx2x/bnx2x.h:17, from../drivers/net/bnx2x/bnx2x_rxtx.c:8:/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h:27:20: note:
previous declaration of ‘uint64_t’ was here typedef__uint64_tuint64_t;Quoted 6 lines
The fix is to remove the duplicate definition.
Fixes 38dff79ba736 ("net/bnx2x: update HSI")Signed-off-by Gavin Hu <[email protected]>
Quoted 8 lines
Hi Rasesh, Shahed,
The driver is causing the build error for the arm, I remember same issue was valid for x86 and fixed later but seems not fixed for arm.
Can you please check for the build error, if we can't find a solution, may have to merge this patch.
Hi Ferruh,
We have a solution to fix the bnx2x build error, it's part of the bug 355. I plan to send it out once tested on failing setup.
Thanks!
-Rasesh
Quoted 22 lines
Thanks,
ferruhQuoted 18 lines
--- drivers/net/bnx2x/bnx2x_osal.h | 4 ---- 1 file changed, 4 deletions(-)(quoted diff) +0
-0
b/drivers/net/bnx2x/bnx2x_osal.hindex 7cd2932..aad4e0b 100644drivers/net/bnx2x/bnx2x_osal.h +0
-4@@ -22,8 +22,4 @@#undef __LITTLE_ENDIAN#endif -#define __le16 uint16_t -#define __le32 uint32_t -#define __le64 uint64_t -#endif /* BNX2X_OSAL_H */