Skip to content

Commit 76be045

Browse files
Zhu Yanjunjgunthorpe
authored andcommitted
IB/rxe: avoid export symbols
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 <[email protected]> CC: Junxiao Bi <[email protected]> Signed-off-by: Zhu Yanjun <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 0f02ba7 commit 76be045

File tree

1 file changed

+0
-3
lines changed
  • drivers/infiniband/sw/rxe

1 file changed

+0
-3
lines changed

drivers/infiniband/sw/rxe/rxe.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ int rxe_set_mtu(struct rxe_dev *rxe, unsigned int ndev_mtu)
306306

307307
return 0;
308308
}
309-
EXPORT_SYMBOL(rxe_set_mtu);
310309

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

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

345343
rxe_dev_put(rxe);
346344
}
347-
EXPORT_SYMBOL(rxe_remove);
348345

349346
static int __init rxe_module_init(void)
350347
{

0 commit comments

Comments
 (0)