History

uapi: fix rdma/mlx5-abi.h userspace compilation errors

Consistently use types from linux/types.h to fix the following rdma/mlx5-abi.h userspace compilation errors: /usr/include/rdma/mlx5-abi.h:69:25: error: 'u64' undeclared here (not in a function) MLX5_LIB_CAP_4K_UAR = (u64)1 << 0, /usr/include/rdma/mlx5-abi.h:69:29: error: expected ',' or '}' before numeric constant MLX5_LIB_CAP_4K_UAR = (u64)1 << 0, Include <linux/if_ether.h> to fix the following rdma/mlx5-abi.h userspace compilation error: /usr/include/rdma/mlx5-abi.h:286:12: error: 'ETH_ALEN' undeclared here (not in a function) __u8 dmac[ETH_ALEN];

Dmitry V. Levin committed 9 years ago

Commit 812755d1 parent 0957c291 file · +2 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/rdma/mlx5-abi.h+2−1
@@ -34,6 +34,7 @@ · 33 unmodified lines
3434 #define MLX5_ABI_USER_H
3535
3636 #include <linux/types.h>
37+#include <linux/if_ether.h> /* For ETH_ALEN. */
3738
3839 enum {
3940 MLX5_QP_FLAG_SIGNATURE = 1 << 0,
@@ -66,7 +67,7 @@ struct mlx5_ib_alloc_ucontext_req { · 26 unmodified lines
6667 };
6768
6869 enum mlx5_lib_caps {
69− MLX5_LIB_CAP_4K_UAR = (u64)1 << 0,
70+ MLX5_LIB_CAP_4K_UAR = (__u64)1 << 0,
7071 };
7172
7273 struct mlx5_ib_alloc_ucontext_req_v2 {