Skip to content

Commit

Permalink
IB/rxe: avoid export symbols
Browse files Browse the repository at this point in the history
The functions rxe_set_mtu, rxe_add and rxe_remove are only used in their
own module. So it is not necessary to export them.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
Zhu Yanjun authored and Jason Gunthorpe committed Apr 18, 2018
1 parent 0f02ba7 commit 76be045
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/infiniband/sw/rxe/rxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ int rxe_set_mtu(struct rxe_dev *rxe, unsigned int ndev_mtu)

return 0;
}
EXPORT_SYMBOL(rxe_set_mtu);

/* called by ifc layer to create new rxe device.
* The caller should allocate memory for rxe by calling ib_alloc_device.
Expand Down Expand Up @@ -335,7 +334,6 @@ int rxe_add(struct rxe_dev *rxe, unsigned int mtu)
rxe_dev_put(rxe);
return err;
}
EXPORT_SYMBOL(rxe_add);

/* called by the ifc layer to remove a device */
void rxe_remove(struct rxe_dev *rxe)
Expand All @@ -344,7 +342,6 @@ void rxe_remove(struct rxe_dev *rxe)

rxe_dev_put(rxe);
}
EXPORT_SYMBOL(rxe_remove);

static int __init rxe_module_init(void)
{
Expand Down

0 comments on commit 76be045

Please sign in to comment.