Commit 390d5772 authored by Jason Gunthorpe's avatar Jason Gunthorpe

RDMA/core: Make rdma_counter.h compile stand alone

5.4-rc1 will have new compile time debugging to test that headers can be
compiled stand alone. Many rdma headers are already broken and excluded
from the mechanism, however to avoid compile failures during the merge
window fix enough so that the newly added header compiles clean.

Fixes: 413d3347 ("RDMA/counter: Add set/clear per-port auto mode support")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarMark Zhang <markz@mellanox.com>
parent 7a54f78d
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/pid_namespace.h> #include <linux/pid_namespace.h>
#include <rdma/ib_verbs.h>
#include <rdma/restrack.h> #include <rdma/restrack.h>
#include <rdma/rdma_netlink.h> #include <rdma/rdma_netlink.h>
struct ib_device;
struct ib_qp; struct ib_qp;
struct auto_mode_param { struct auto_mode_param {
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#include <uapi/rdma/rdma_netlink.h> #include <uapi/rdma/rdma_netlink.h>
#include <linux/xarray.h> #include <linux/xarray.h>
struct ib_device;
struct sk_buff;
/** /**
* enum rdma_restrack_type - HW objects to track * enum rdma_restrack_type - HW objects to track
*/ */
...@@ -52,8 +55,6 @@ enum rdma_restrack_type { ...@@ -52,8 +55,6 @@ enum rdma_restrack_type {
RDMA_RESTRACK_MAX RDMA_RESTRACK_MAX
}; };
struct ib_device;
/** /**
* struct rdma_restrack_entry - metadata per-entry * struct rdma_restrack_entry - metadata per-entry
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment