From a95336b109a09e9b164e3ffe58c9d4ec9c1af82f Mon Sep 17 00:00:00 2001 From: Ka-Cheong Poon Date: Tue, 24 Oct 2017 19:50:00 -0700 Subject: [PATCH] rds: Remove .exit from struct rds_transport MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The .exit function in struct rds_transport is removed as it is never used. Orabug: 27013833 Signed-off-by: Ka-Cheong Poon Reviewed-by: Shannon Nelson Reviewed-by: HÃ¥kon Bugge Signed-off-by: Dhaval Giani --- net/rds/ib.c | 3 +-- net/rds/rds.h | 1 - net/rds/tcp.c | 5 +---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/net/rds/ib.c b/net/rds/ib.c index e6b143aa7add..9a7ecdcd56e6 100644 --- a/net/rds/ib.c +++ b/net/rds/ib.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006 Oracle. All rights reserved. + * Copyright (c) 2006, 2017 Oracle and/or its affiliates. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -2818,7 +2818,6 @@ struct rds_transport rds_ib_transport = { .cm_handle_connect = rds_ib_cm_handle_connect, .cm_connect_complete = rds_ib_cm_connect_complete, .stats_info_copy = rds_ib_stats_info_copy, - .exit = rds_ib_exit, .get_mr = rds_ib_get_mr, .sync_mr = rds_ib_sync_mr, .free_mr = rds_ib_free_mr, diff --git a/net/rds/rds.h b/net/rds/rds.h index 3f50b738f3db..65056ea6ae99 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h @@ -693,7 +693,6 @@ struct rds_transport { unsigned int (*stats_info_copy)(struct rds_info_iterator *iter, unsigned int avail); - void (*exit)(void); void *(*get_mr)(struct scatterlist *sg, unsigned long nr_sg, struct rds_sock *rs, u32 *key_ret, struct rds_connection *conn); diff --git a/net/rds/tcp.c b/net/rds/tcp.c index 9f6f5547eef2..6d6f5cd70c6b 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006 Oracle. All rights reserved. + * Copyright (c) 2006, 2017 Oracle and/or its affiliates. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -340,8 +340,6 @@ static void rds_tcp_destroy_conns(void) rds_conn_destroy(tc->t_cpath->cp_conn, 1); } -static void rds_tcp_exit(void); - struct rds_transport rds_tcp_transport = { .laddr_check = rds_tcp_laddr_check, .xmit_path_prepare = rds_tcp_xmit_path_prepare, @@ -356,7 +354,6 @@ struct rds_transport rds_tcp_transport = { .inc_free = rds_tcp_inc_free, .skb_local = rds_skb_local, .stats_info_copy = rds_tcp_stats_info_copy, - .exit = rds_tcp_exit, .t_owner = THIS_MODULE, .t_name = "tcp", .t_type = RDS_TRANS_TCP, -- 2.50.1