RDMA: Make most headers compile stand alone
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 22 Jul 2019 17:01:30 +0000 (17:01 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 25 Jul 2019 16:58:47 +0000 (13:58 -0300)
So that rdma can work with CONFIG_KERNEL_HEADER_TEST and
CONFIG_HEADERS_CHECK.

Link: https://lore.kernel.org/r/20190722170126.GA16453@ziepe.ca
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/Kbuild
include/rdma/ib.h
include/rdma/iw_portmap.h
include/rdma/opa_port_info.h
include/rdma/rdmavt_cq.h
include/rdma/signature.h

index c38f0d46b267cb2d747eb9d26bf2599d03947be5..fc2aa4e2065811643b94399bb3eae1fa403b688c 100644 (file)
@@ -945,12 +945,6 @@ header-test-                       += net/xdp.h
 header-test-                   += net/xdp_priv.h
 header-test-                   += pcmcia/cistpl.h
 header-test-                   += pcmcia/ds.h
-header-test-                   += rdma/ib.h
-header-test-                   += rdma/iw_portmap.h
-header-test-                   += rdma/opa_port_info.h
-header-test-                   += rdma/rdmavt_cq.h
-header-test-                   += rdma/restrack.h
-header-test-                   += rdma/signature.h
 header-test-                   += rdma/tid_rdma_defs.h
 header-test-                   += scsi/fc/fc_encaps.h
 header-test-                   += scsi/fc/fc_fc2.h
index 4f385ec54f80ce0a1afcbf009a42c2a1cb1285f3..fe2fc9e91588de93a1c58b55194b3d974a09d9da 100644 (file)
@@ -36,6 +36,8 @@
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/cred.h>
+#include <linux/uaccess.h>
+#include <linux/fs.h>
 
 struct ib_addr {
        union {
index b9fee7feeeb5a55aa8a2b85155038dd94e78fd6c..c89535047c42cd8b363786ae6a65bf37c771d79d 100644 (file)
@@ -33,6 +33,9 @@
 #ifndef _IW_PORTMAP_H
 #define _IW_PORTMAP_H
 
+#include <linux/socket.h>
+#include <linux/netlink.h>
+
 #define IWPM_ULIBNAME_SIZE     32
 #define IWPM_DEVNAME_SIZE      32
 #define IWPM_IFNAME_SIZE       16
index 7147a92630114d9168e76e0f8e50caf90dbee30d..bdbfe25d38548be3d112d60c2927ee74dd98a9e2 100644 (file)
@@ -33,6 +33,8 @@
 #if !defined(OPA_PORT_INFO_H)
 #define OPA_PORT_INFO_H
 
+#include <rdma/opa_smi.h>
+
 #define OPA_PORT_LINK_MODE_NOP 0               /* No change */
 #define OPA_PORT_LINK_MODE_OPA 4               /* Port mode is OPA */
 
index 04c519ef6d715b30adf603b2445180a9874325e2..574eb7278f468f797a9dbe10e14a2492c6d88ac7 100644 (file)
@@ -53,6 +53,7 @@
 
 #include <linux/kthread.h>
 #include <rdma/ib_user_verbs.h>
+#include <rdma/ib_verbs.h>
 
 /*
  * Define an ib_cq_notify value that is not valid so we know when CQ
index f24cc2a1d3c5d961a9d284ac79d01798232b936c..d16b0fcc8344b32c3d2eb5466b35d860f7979e91 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _RDMA_SIGNATURE_H_
 #define _RDMA_SIGNATURE_H_
 
+#include <linux/types.h>
+
 enum ib_signature_prot_cap {
        IB_PROT_T10DIF_TYPE_1 = 1,
        IB_PROT_T10DIF_TYPE_2 = 1 << 1,