From: Jason Gunthorpe Date: Tue, 9 Jul 2019 12:44:47 +0000 (-0300) Subject: RDMA/core: Make rdma_counter.h compile stand alone X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=390d57728d8e6f7283030cb20d3b5459771a32f1;p=openwrt%2Fstaging%2Fblogic.git 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: 413d3347503b ("RDMA/counter: Add set/clear per-port auto mode support") Reported-by: Stephen Rothwell Signed-off-by: Jason Gunthorpe Signed-off-by: Mark Zhang --- diff --git a/include/rdma/rdma_counter.h b/include/rdma/rdma_counter.h index 68827700ba95..eb99856e8b30 100644 --- a/include/rdma/rdma_counter.h +++ b/include/rdma/rdma_counter.h @@ -9,10 +9,10 @@ #include #include -#include #include #include +struct ib_device; struct ib_qp; struct auto_mode_param { diff --git a/include/rdma/restrack.h b/include/rdma/restrack.h index 4041a4d96524..b0fc6b26bdf5 100644 --- a/include/rdma/restrack.h +++ b/include/rdma/restrack.h @@ -14,6 +14,9 @@ #include #include +struct ib_device; +struct sk_buff; + /** * enum rdma_restrack_type - HW objects to track */ @@ -52,8 +55,6 @@ enum rdma_restrack_type { RDMA_RESTRACK_MAX }; -struct ib_device; - /** * struct rdma_restrack_entry - metadata per-entry */