Commit 76be0450 authored by Zhu Yanjun's avatar Zhu Yanjun Committed by Jason Gunthorpe
Browse files

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 <srinivas.eeda@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 0f02ba7e
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -306,7 +306,6 @@ int rxe_set_mtu(struct rxe_dev *rxe, unsigned int ndev_mtu)


	return 0;
	return 0;
}
}
EXPORT_SYMBOL(rxe_set_mtu);


/* called by ifc layer to create new rxe device.
/* called by ifc layer to create new rxe device.
 * The caller should allocate memory for rxe by calling ib_alloc_device.
 * 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)
	rxe_dev_put(rxe);
	rxe_dev_put(rxe);
	return err;
	return err;
}
}
EXPORT_SYMBOL(rxe_add);


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


	rxe_dev_put(rxe);
	rxe_dev_put(rxe);
}
}
EXPORT_SYMBOL(rxe_remove);


static int __init rxe_module_init(void)
static int __init rxe_module_init(void)
{
{