Skip to content

Commit ea6819e

Browse files
NicolasDichtelmasahir0y
authored andcommitted
smc_diag.h: fix include from userland
This patch prepares the uapi export by fixing the following error: .../linux/smc_diag.h:6:27: fatal error: rdma/ib_verbs.h: No such file or directory #include <rdma/ib_verbs.h> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 3a4e7f5 commit ea6819e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

include/rdma/ib_verbs.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#include <linux/mmu_notifier.h>
6363
#include <linux/uaccess.h>
6464
#include <linux/cgroup_rdma.h>
65+
#include <uapi/rdma/ib_user_verbs.h>
6566

6667
extern struct workqueue_struct *ib_wq;
6768
extern struct workqueue_struct *ib_comp_wq;
@@ -1889,8 +1890,6 @@ enum ib_mad_result {
18891890
IB_MAD_RESULT_CONSUMED = 1 << 2 /* Packet consumed: stop processing */
18901891
};
18911892

1892-
#define IB_DEVICE_NAME_MAX 64
1893-
18941893
struct ib_port_cache {
18951894
struct ib_pkey_cache *pkey;
18961895
struct ib_gid_table *gid;

include/uapi/linux/smc_diag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <linux/types.h>
55
#include <linux/inet_diag.h>
6-
#include <rdma/ib_verbs.h>
6+
#include <rdma/ib_user_verbs.h>
77

88
/* Request structure */
99
struct smc_diag_req {

include/uapi/rdma/ib_user_verbs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,4 +1135,6 @@ struct ib_uverbs_ex_destroy_rwq_ind_table {
11351135
__u32 ind_tbl_handle;
11361136
};
11371137

1138+
#define IB_DEVICE_NAME_MAX 64
1139+
11381140
#endif /* IB_USER_VERBS_H */

0 commit comments

Comments
 (0)