[openib-general] [PATCH][SDP][22/22] Remove use of leading underscores in static names in sdp_sent.c

Tom Duffy Tom.Duffy at Sun.COM
Mon Feb 28 14:03:45 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

Index: drivers/infiniband/ulp/sdp/sdp_sent.c
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_sent.c	(revision 1929)
+++ drivers/infiniband/ulp/sdp/sdp_sent.c	(working copy)
@@ -38,7 +38,7 @@
  * Specific MID handler functions. (SEND)
  */
 
-static int _sdp_sent_disconnect(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_disconnect(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result;
 
@@ -115,7 +115,7 @@ error:
 	return result;
 }
 
-static int _sdp_sent_abort(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_abort(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result;
 
@@ -133,121 +133,120 @@ static int _sdp_sent_abort(struct sdp_op
 	return result;
 }
 
-static int _sdp_sent_send_sm(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_send_sm(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	return 0;
 }
 
-static int _sdp_sent_rdma_wr(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_rdma_wr(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_rwch *rwch;
 
 	rwch = (struct msg_hdr_rwch *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_rwch);
 
-	_sdp_msg_net_to_cpu_rwch(rwch);
+	sdp_msg_net_to_cpu_rwch(rwch);
 
 	return 0;
 }
 
-static int _sdp_sent_rdma_rd(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_rdma_rd(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_rrch *rrch;
 
 	rrch = (struct msg_hdr_rrch *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_rrch);
 
-	_sdp_msg_net_to_cpu_rrch(rrch);
+	sdp_msg_net_to_cpu_rrch(rrch);
 
 	return 0;
 }
 
-static int _sdp_sent_mode_change(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_mode_change(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_mch *mch;
 
 	mch = (struct msg_hdr_mch *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_mch);
 
-	_sdp_msg_net_to_cpu_mch(mch);
+	sdp_msg_net_to_cpu_mch(mch);
 
 	return 0;
 }
 
-static int _sdp_sent_src_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_src_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	return 0;
 }
 
-static int _sdp_sent_snk_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_snk_cancel(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	return 0;
 }
 
-static int _sdp_sent_snk_cancel_ack(struct sdp_opt *conn,
-				    struct sdpc_buff *buff)
+static int sdp_sent_snk_cancel_ack(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	return 0;
 }
 
-static int _sdp_sent_resize_buff_ack(struct sdp_opt *conn,
-				     struct sdpc_buff *buff)
+static int sdp_sent_resize_buff_ack(struct sdp_opt *conn,
+				    struct sdpc_buff *buff)
 {
 	struct msg_hdr_crbah *crbah;
 
 	crbah = (struct msg_hdr_crbah *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_crbah);
 
-	_sdp_msg_net_to_cpu_crbah(crbah);
+	sdp_msg_net_to_cpu_crbah(crbah);
 
 	return 0;
 }
 
-static int _sdp_sent_suspend(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_suspend(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_sch *sch;
 
 	sch = (struct msg_hdr_sch *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_sch);
 
-	_sdp_msg_net_to_cpu_sch(sch);
+	sdp_msg_net_to_cpu_sch(sch);
 
 	return 0;
 }
 
-static int _sdp_sent_suspend_ack(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_suspend_ack(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	return 0;
 }
 
-static int _sdp_sent_snk_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_snk_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_snkah *snkah;
 
 	snkah = (struct msg_hdr_snkah *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_snkah);
 
-	_sdp_msg_net_to_cpu_snkah(snkah);
+	sdp_msg_net_to_cpu_snkah(snkah);
 
 	return 0;
 }
 
-static int _sdp_sent_src_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_src_avail(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	struct msg_hdr_srcah *srcah;
 
 	srcah = (struct msg_hdr_srcah *) buff->data;
 	buff->data = buff->data + sizeof(struct msg_hdr_srcah);
 
-	_sdp_msg_net_to_cpu_srcah(srcah);
+	sdp_msg_net_to_cpu_srcah(srcah);
 
 	return 0;
 }
 
 /*
- * _sdp_sent_data - SDP data message event received
+ * sdp_sent_data - SDP data message event received
  */
-static int _sdp_sent_data(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_data(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	int result = 0;
 
@@ -257,9 +256,9 @@ static int _sdp_sent_data(struct sdp_opt
 }
 
 /*
- * _sdp_sent_unsupported - Valid messages we're not sending
+ * sdp_sent_unsupported - Valid messages we're not sending
  */
-static int _sdp_sent_unsupported(struct sdp_opt *conn, struct sdpc_buff *buff)
+static int sdp_sent_unsupported(struct sdp_opt *conn, struct sdpc_buff *buff)
 {
 	/*
 	 * Since the gateway only initates RDMA's but is never a target, and
@@ -284,38 +283,38 @@ static int _sdp_sent_unsupported(struct 
  * only those are represented in the table.
  */
 static sdp_event_cb_func send_event_funcs[SDP_MSG_EVENT_TABLE_SIZE] = {
-	NULL,                      /* SDP_MID_HELLO            0x00 */
-	NULL,                      /* SDP_MID_HELLO_ACK        0x01 */
-	_sdp_sent_disconnect,      /* SDP_MID_DISCONNECT       0x02 */
-	_sdp_sent_abort,           /* SDP_MID_ABORT_CONN       0x03 */
-	_sdp_sent_send_sm,         /* SDP_MID_SEND_SM          0x04 */
-	_sdp_sent_rdma_wr,         /* SDP_MID_RDMA_WR_COMP     0x05 */
-	_sdp_sent_rdma_rd,         /* SDP_MID_RDMA_RD_COMP     0x06 */
-	_sdp_sent_mode_change,     /* SDP_MID_MODE_CHANGE      0x07 */
-	_sdp_sent_src_cancel,      /* SDP_MID_SRC_CANCEL       0x08 */
-	_sdp_sent_snk_cancel,      /* SDP_MID_SNK_CANCEL       0x09 */
-	_sdp_sent_snk_cancel_ack,  /* SDP_MID_SNK_CANCEL_ACK   0x0A */
-	_sdp_sent_unsupported,     /* SDP_MID_CH_RECV_BUF      0x0B */
-	_sdp_sent_resize_buff_ack, /* SDP_MID_CH_RECV_BUF_ACK  0x0C */
-	_sdp_sent_suspend,         /* SDP_MID_SUSPEND          0x0D */
-	_sdp_sent_suspend_ack,     /* SDP_MID_SUSPEND_ACK      0x0E */
-	NULL,                      /* reserved                    0x0F */
-	NULL,                      /* reserved                    0xF0 */
-	NULL,                      /* reserved                    0xF1 */
-	NULL,                      /* reserved                    0xF2 */
-	NULL,                      /* reserved                    0xF3 */
-	NULL,                      /* reserved                    0xF4 */
-	NULL,                      /* reserved                    0xF5 */
-	NULL,                      /* reserved                    0xF6 */
-	NULL,                      /* reserved                    0xF7 */
-	NULL,                      /* reserved                    0xF8 */
-	NULL,                      /* reserved                    0xF9 */
-	NULL,                      /* reserved                    0xFA */
-	NULL,                      /* reserved                    0xFB */
-	NULL,                      /* reserved                    0xFC */
-	_sdp_sent_snk_avail,       /* SDP_MID_SNK_AVAIL        0xFD */
-	_sdp_sent_src_avail,       /* SDP_MID_SRC_AVAIL        0xFE */
-	_sdp_sent_data             /* SDP_MID_DATA             0xFF */
+	NULL,                     /* SDP_MID_HELLO            0x00 */
+	NULL,                     /* SDP_MID_HELLO_ACK        0x01 */
+	sdp_sent_disconnect,      /* SDP_MID_DISCONNECT       0x02 */
+	sdp_sent_abort,           /* SDP_MID_ABORT_CONN       0x03 */
+	sdp_sent_send_sm,         /* SDP_MID_SEND_SM          0x04 */
+	sdp_sent_rdma_wr,         /* SDP_MID_RDMA_WR_COMP     0x05 */
+	sdp_sent_rdma_rd,         /* SDP_MID_RDMA_RD_COMP     0x06 */
+	sdp_sent_mode_change,     /* SDP_MID_MODE_CHANGE      0x07 */
+	sdp_sent_src_cancel,      /* SDP_MID_SRC_CANCEL       0x08 */
+	sdp_sent_snk_cancel,      /* SDP_MID_SNK_CANCEL       0x09 */
+	sdp_sent_snk_cancel_ack,  /* SDP_MID_SNK_CANCEL_ACK   0x0A */
+	sdp_sent_unsupported,     /* SDP_MID_CH_RECV_BUF      0x0B */
+	sdp_sent_resize_buff_ack, /* SDP_MID_CH_RECV_BUF_ACK  0x0C */
+	sdp_sent_suspend,         /* SDP_MID_SUSPEND          0x0D */
+	sdp_sent_suspend_ack,     /* SDP_MID_SUSPEND_ACK      0x0E */
+	NULL,                     /* reserved                 0x0F */
+	NULL,                     /* reserved                 0xF0 */
+	NULL,                     /* reserved                 0xF1 */
+	NULL,                     /* reserved                 0xF2 */
+	NULL,                     /* reserved                 0xF3 */
+	NULL,                     /* reserved                 0xF4 */
+	NULL,                     /* reserved                 0xF5 */
+	NULL,                     /* reserved                 0xF6 */
+	NULL,                     /* reserved                 0xF7 */
+	NULL,                     /* reserved                 0xF8 */
+	NULL,                     /* reserved                 0xF9 */
+	NULL,                     /* reserved                 0xFA */
+	NULL,                     /* reserved                 0xFB */
+	NULL,                     /* reserved                 0xFC */
+	sdp_sent_snk_avail,       /* SDP_MID_SNK_AVAIL        0xFD */
+	sdp_sent_src_avail,       /* SDP_MID_SRC_AVAIL        0xFE */
+	sdp_sent_data             /* SDP_MID_DATA             0xFF */
 };
 
 /*




More information about the general mailing list