diff mbox

[1/1] IB/rxe: avoid unnecessary export

Message ID 1527498221-26193-1-git-send-email-yanjun.zhu@oracle.com (mailing list archive)
State Accepted
Headers show

Commit Message

Zhu Yanjun May 28, 2018, 9:03 a.m. UTC
The function rxe_remove_all is only used in this modules.
There is no other modules that call this function. So it
is not necessary to export it.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
---
 drivers/infiniband/sw/rxe/rxe_net.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Leon Romanovsky May 28, 2018, 9:19 a.m. UTC | #1
On Mon, May 28, 2018 at 05:03:41AM -0400, Zhu Yanjun wrote:
> The function rxe_remove_all is only used in this modules.
> There is no other modules that call this function. So it
> is not necessary to export it.
>
> Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
> ---
>  drivers/infiniband/sw/rxe/rxe_net.c | 1 -
>  1 file changed, 1 deletion(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Jason Gunthorpe May 28, 2018, 5:28 p.m. UTC | #2
On Mon, May 28, 2018 at 05:03:41AM -0400, Zhu Yanjun wrote:
> The function rxe_remove_all is only used in this modules.
> There is no other modules that call this function. So it
> is not necessary to export it.
> 
> Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
> ---
>  drivers/infiniband/sw/rxe/rxe_net.c | 1 -
>  1 file changed, 1 deletion(-)

Applied to for-next, thanks

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c
index 9da6e37..bcf4739 100644
--- a/drivers/infiniband/sw/rxe/rxe_net.c
+++ b/drivers/infiniband/sw/rxe/rxe_net.c
@@ -622,7 +622,6 @@  void rxe_remove_all(void)
 	}
 	spin_unlock_bh(&dev_list_lock);
 }
-EXPORT_SYMBOL(rxe_remove_all);
 
 static void rxe_port_event(struct rxe_dev *rxe,
 			   enum ib_event_type event)