Skip to content

Commit

Permalink
smc_diag.h: fix include from userland
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
NicolasDichtel authored and masahir0y committed May 10, 2017
1 parent 3a4e7f5 commit ea6819e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/rdma/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include <linux/mmu_notifier.h>
#include <linux/uaccess.h>
#include <linux/cgroup_rdma.h>
#include <uapi/rdma/ib_user_verbs.h>

extern struct workqueue_struct *ib_wq;
extern struct workqueue_struct *ib_comp_wq;
Expand Down Expand Up @@ -1889,8 +1890,6 @@ enum ib_mad_result {
IB_MAD_RESULT_CONSUMED = 1 << 2 /* Packet consumed: stop processing */
};

#define IB_DEVICE_NAME_MAX 64

struct ib_port_cache {
struct ib_pkey_cache *pkey;
struct ib_gid_table *gid;
Expand Down
2 changes: 1 addition & 1 deletion include/uapi/linux/smc_diag.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <linux/types.h>
#include <linux/inet_diag.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_user_verbs.h>

/* Request structure */
struct smc_diag_req {
Expand Down
2 changes: 2 additions & 0 deletions include/uapi/rdma/ib_user_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1135,4 +1135,6 @@ struct ib_uverbs_ex_destroy_rwq_ind_table {
__u32 ind_tbl_handle;
};

#define IB_DEVICE_NAME_MAX 64

#endif /* IB_USER_VERBS_H */

0 comments on commit ea6819e

Please sign in to comment.