]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
RDMA/i40iw: Remove FMR leftovers
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 28 May 2020 19:45:49 +0000 (16:45 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jun 2020 23:32:54 +0000 (20:32 -0300)
The ibfmr member is never referenced, remove it.

Link: https://lore.kernel.org/r/7-v3-f58e6669d5d3+2cf-fmr_removal_jgg@mellanox.com
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_verbs.h

index 3c62c9327a9c4cbf5755cc6e0e3cb8cf6f2701e2..49d92638e0dbbf349ab12e01dff3c032ca9381b8 100644 (file)
@@ -381,15 +381,6 @@ static inline struct i40iw_mr *to_iwmr(struct ib_mr *ibmr)
        return container_of(ibmr, struct i40iw_mr, ibmr);
 }
 
-/**
- * to_iwmr_from_ibfmr - get device memory region
- * @ibfmr: ib fmr
- **/
-static inline struct i40iw_mr *to_iwmr_from_ibfmr(struct ib_fmr *ibfmr)
-{
-       return container_of(ibfmr, struct i40iw_mr, ibfmr);
-}
-
 /**
  * to_iwmw - get device memory window
  * @ibmw: ib memory window
index 3a413752ccc38c2213106c3736b16c78d5def68b..331bc21cbcc731ff971b3cf40c662f133e89d72e 100644 (file)
@@ -89,7 +89,6 @@ struct i40iw_mr {
        union {
                struct ib_mr ibmr;
                struct ib_mw ibmw;
-               struct ib_fmr ibfmr;
        };
        struct ib_umem *region;
        u16 type;