Commit 9ef77bd7 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Jason Gunthorpe

RDMA/rxe: Remove useless EXPORT_SYMBOL

The RXE driver is standalone module and hence doesn't need to export
symbols, nor does this one line function deserve to be not inlined.
Reviewed-by: default avatarMark Bloch <markb@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 27f382da
...@@ -77,12 +77,6 @@ void rxe_release(struct kref *kref) ...@@ -77,12 +77,6 @@ void rxe_release(struct kref *kref)
ib_dealloc_device(&rxe->ib_dev); ib_dealloc_device(&rxe->ib_dev);
} }
void rxe_dev_put(struct rxe_dev *rxe)
{
kref_put(&rxe->ref_cnt, rxe_release);
}
EXPORT_SYMBOL_GPL(rxe_dev_put);
/* initialize rxe device parameters */ /* initialize rxe device parameters */
static int rxe_init_device_param(struct rxe_dev *rxe) static int rxe_init_device_param(struct rxe_dev *rxe)
{ {
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#include "rxe_hdr.h" #include "rxe_hdr.h"
#include "rxe_param.h" #include "rxe_param.h"
#include "rxe_verbs.h" #include "rxe_verbs.h"
#include "rxe_loc.h"
#define RXE_UVERBS_ABI_VERSION (1) #define RXE_UVERBS_ABI_VERSION (1)
...@@ -95,7 +96,10 @@ void rxe_remove_all(void); ...@@ -95,7 +96,10 @@ void rxe_remove_all(void);
int rxe_rcv(struct sk_buff *skb); int rxe_rcv(struct sk_buff *skb);
void rxe_dev_put(struct rxe_dev *rxe); static inline void rxe_dev_put(struct rxe_dev *rxe)
{
kref_put(&rxe->ref_cnt, rxe_release);
}
struct rxe_dev *net_to_rxe(struct net_device *ndev); struct rxe_dev *net_to_rxe(struct net_device *ndev);
struct rxe_dev *get_rxe_by_name(const char *name); struct rxe_dev *get_rxe_by_name(const char *name);
......
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