staging/lustre/lnet: remove kiblnd_debug_conn/rx/tx
authorPeng Tao <bergwolf@gmail.com>
Wed, 5 Mar 2014 13:27:15 +0000 (21:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 03:23:55 +0000 (19:23 -0800)
They are not called by anyone and cause gcc warning:
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:609: warning: ‘kiblnd_debug_conn’ defined but not used
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:589: warning: ‘kiblnd_debug_rx’ defined but not used
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:597: warning: ‘kiblnd_debug_tx’ defined but not used

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c

index 0727998a7667c7e82d9cc1f4d674f29ee916120b..d42c8f6d35d7a118b47aa85baf0407f500ec4df5 100644 (file)
@@ -584,74 +584,6 @@ kiblnd_get_conn_by_idx(lnet_ni_t *ni, int index)
        return NULL;
 }
 
-static void
-kiblnd_debug_rx(kib_rx_t *rx)
-{
-       CDEBUG(D_CONSOLE, "      %p status %d msg_type %x cred %d\n",
-              rx, rx->rx_status, rx->rx_msg->ibm_type,
-              rx->rx_msg->ibm_credits);
-}
-
-static void
-kiblnd_debug_tx(kib_tx_t *tx)
-{
-       CDEBUG(D_CONSOLE, "      %p snd %d q %d w %d rc %d dl %lx "
-              "cookie "LPX64" msg %s%s type %x cred %d\n",
-              tx, tx->tx_sending, tx->tx_queued, tx->tx_waiting,
-              tx->tx_status, tx->tx_deadline, tx->tx_cookie,
-              tx->tx_lntmsg[0] == NULL ? "-" : "!",
-              tx->tx_lntmsg[1] == NULL ? "-" : "!",
-              tx->tx_msg->ibm_type, tx->tx_msg->ibm_credits);
-}
-
-static void
-kiblnd_debug_conn(kib_conn_t *conn)
-{
-       struct list_head        *tmp;
-       int             i;
-
-       spin_lock(&conn->ibc_lock);
-
-       CDEBUG(D_CONSOLE, "conn[%d] %p [version %x] -> %s: \n",
-              atomic_read(&conn->ibc_refcount), conn,
-              conn->ibc_version, libcfs_nid2str(conn->ibc_peer->ibp_nid));
-       CDEBUG(D_CONSOLE, "   state %d nposted %d/%d cred %d o_cred %d r_cred %d\n",
-              conn->ibc_state, conn->ibc_noops_posted,
-              conn->ibc_nsends_posted, conn->ibc_credits,
-              conn->ibc_outstanding_credits, conn->ibc_reserved_credits);
-       CDEBUG(D_CONSOLE, "   comms_err %d\n", conn->ibc_comms_error);
-
-       CDEBUG(D_CONSOLE, "   early_rxs:\n");
-       list_for_each(tmp, &conn->ibc_early_rxs)
-               kiblnd_debug_rx(list_entry(tmp, kib_rx_t, rx_list));
-
-       CDEBUG(D_CONSOLE, "   tx_noops:\n");
-       list_for_each(tmp, &conn->ibc_tx_noops)
-               kiblnd_debug_tx(list_entry(tmp, kib_tx_t, tx_list));
-
-       CDEBUG(D_CONSOLE, "   tx_queue_nocred:\n");
-       list_for_each(tmp, &conn->ibc_tx_queue_nocred)
-               kiblnd_debug_tx(list_entry(tmp, kib_tx_t, tx_list));
-
-       CDEBUG(D_CONSOLE, "   tx_queue_rsrvd:\n");
-       list_for_each(tmp, &conn->ibc_tx_queue_rsrvd)
-               kiblnd_debug_tx(list_entry(tmp, kib_tx_t, tx_list));
-
-       CDEBUG(D_CONSOLE, "   tx_queue:\n");
-       list_for_each(tmp, &conn->ibc_tx_queue)
-               kiblnd_debug_tx(list_entry(tmp, kib_tx_t, tx_list));
-
-       CDEBUG(D_CONSOLE, "   active_txs:\n");
-       list_for_each(tmp, &conn->ibc_active_txs)
-               kiblnd_debug_tx(list_entry(tmp, kib_tx_t, tx_list));
-
-       CDEBUG(D_CONSOLE, "   rxs:\n");
-       for (i = 0; i < IBLND_RX_MSGS(conn->ibc_version); i++)
-               kiblnd_debug_rx(&conn->ibc_rxs[i]);
-
-       spin_unlock(&conn->ibc_lock);
-}
-
 int
 kiblnd_translate_mtu(int value)
 {