]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rds: Remove .exit from struct rds_transport
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Wed, 25 Oct 2017 02:50:00 +0000 (19:50 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Thu, 26 Oct 2017 03:17:25 +0000 (23:17 -0400)
The .exit function in struct rds_transport is removed as it
is never used.

Orabug: 27013833

Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/rds/ib.c
net/rds/rds.h
net/rds/tcp.c

index e6b143aa7addae4d0bc50752677468e4d0246578..9a7ecdcd56e60af79f84a3ba6234b44bec9611dc 100644 (file)
@@ -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,
index 3f50b738f3db4d7a927633722efaa9d77e2cd387..65056ea6ae99fdd6ec453c67ab68c87083d0ddb7 100644 (file)
@@ -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);
index 9f6f5547eef243c42a2b2eb88406af1a33db8d4c..6d6f5cd70c6b451bb70d4e474c12d60093190175 100644 (file)
@@ -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,