diff options
| author | Dmitry V. Levin <ldv@altlinux.org> | 2017-02-23 19:28:13 -0500 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2017-03-24 22:01:35 -0400 |
| commit | 812755d69efcf7c12fded57983d456647a0bbadd (patch) | |
| tree | da374a04816a1049636f7bd5fe902fe5b9e20a24 /include/uapi/rdma | |
| parent | 0957c29f78af7d890c4ac506eda8f76bfc5a137a (diff) | |
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];
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma')
| -rw-r--r-- | include/uapi/rdma/mlx5-abi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/rdma/mlx5-abi.h b/include/uapi/rdma/mlx5-abi.h index da7cd62bace7..0b3d30837a9f 100644 --- a/include/uapi/rdma/mlx5-abi.h +++ b/include/uapi/rdma/mlx5-abi.h | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | #define MLX5_ABI_USER_H | 34 | #define MLX5_ABI_USER_H |
| 35 | 35 | ||
| 36 | #include <linux/types.h> | 36 | #include <linux/types.h> |
| 37 | #include <linux/if_ether.h> /* For ETH_ALEN. */ | ||
| 37 | 38 | ||
| 38 | enum { | 39 | enum { |
| 39 | MLX5_QP_FLAG_SIGNATURE = 1 << 0, | 40 | MLX5_QP_FLAG_SIGNATURE = 1 << 0, |
| @@ -66,7 +67,7 @@ struct mlx5_ib_alloc_ucontext_req { | |||
| 66 | }; | 67 | }; |
| 67 | 68 | ||
| 68 | enum mlx5_lib_caps { | 69 | enum mlx5_lib_caps { |
| 69 | MLX5_LIB_CAP_4K_UAR = (u64)1 << 0, | 70 | MLX5_LIB_CAP_4K_UAR = (__u64)1 << 0, |
| 70 | }; | 71 | }; |
| 71 | 72 | ||
| 72 | struct mlx5_ib_alloc_ucontext_req_v2 { | 73 | struct mlx5_ib_alloc_ucontext_req_v2 { |
