Commit 39289bfc authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA: Make most headers compile stand alone

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: default avatarJason Gunthorpe <jgg@mellanox.com>
parent cf167e5e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -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 {
+3 −0
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -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 */

+1 −0
Original line number Diff line number Diff line
@@ -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
Loading