]> git.baikalelectronics.ru Git - kernel.git/commitdiff
smc_diag.h: fix include from userland
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 27 Mar 2017 12:20:14 +0000 (14:20 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 May 2017 15:18:39 +0000 (00:18 +0900)
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>
include/rdma/ib_verbs.h
include/uapi/linux/smc_diag.h
include/uapi/rdma/ib_user_verbs.h

index f0cb4906478ab1713f376555c21af3c1eff12d07..ba8314ec576844ddb7148364617a768c81acd90f 100644 (file)
@@ -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;
@@ -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;
index 0063919fea344664ee657913ffdb1a49c9158a25..87712bfaa9dd00d431cbc1953da0462a52d7e119 100644 (file)
@@ -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 {
index 477d629f539dba306abfa39fca75f52ec7a692ac..270c350bedc6c4911ff0763275fc034e90b2a018 100644 (file)
@@ -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 */