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

Tom Duffy Tom.Duffy at Sun.COM
Mon Feb 28 14:02:43 PST 2005


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

Index: drivers/infiniband/ulp/sdp/sdp_queue.c
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_queue.c	(revision 1929)
+++ drivers/infiniband/ulp/sdp/sdp_queue.c	(working copy)
@@ -39,10 +39,9 @@
  */
 
 /*
- * _sdp_desc_q_get - Get an element from a specific table
+ * sdp_desc_q_get - Get an element from a specific table
  */
-static struct sdpc_desc *_sdp_desc_q_get(struct sdpc_desc_q *table,
-					 int fifo)
+static struct sdpc_desc *sdp_desc_q_get(struct sdpc_desc_q *table, int fifo)
 {
 	struct sdpc_desc *element;
 
@@ -75,11 +74,10 @@ static struct sdpc_desc *_sdp_desc_q_get
 }
 
 /*
- * _sdp_desc_q_put - Place an element into a specific table
+ * sdp_desc_q_put - Place an element into a specific table
  */
-static inline int _sdp_desc_q_put(struct sdpc_desc_q *table,
-				  struct sdpc_desc *element, 
-				  int fifo)
+static inline int sdp_desc_q_put(struct sdpc_desc_q *table,
+				 struct sdpc_desc *element, int fifo)
 {
 	/*
 	 * fifo: false == tail, true == head
@@ -169,7 +167,7 @@ struct sdpc_desc *sdp_desc_q_lookup(stru
  */
 struct sdpc_desc *sdp_desc_q_get_head(struct sdpc_desc_q *table)
 {
-	return _sdp_desc_q_get(table, 1);
+	return sdp_desc_q_get(table, 1);
 }
 
 /*
@@ -177,25 +175,23 @@ struct sdpc_desc *sdp_desc_q_get_head(st
  */
 struct sdpc_desc *sdp_desc_q_get_tail(struct sdpc_desc_q *table)
 {
-	return _sdp_desc_q_get(table, 0);
+	return sdp_desc_q_get(table, 0);
 }
 
 /*
  * sdp_desc_q_put_head - Place an element into the head of a table
  */
-int sdp_desc_q_put_head(struct sdpc_desc_q *table,
-				struct sdpc_desc *element)
+int sdp_desc_q_put_head(struct sdpc_desc_q *table, struct sdpc_desc *element)
 {
-	return _sdp_desc_q_put(table, element, 1);
+	return sdp_desc_q_put(table, element, 1);
 }
 
 /*
  * sdp_desc_q_put_tail - Place an element into the tail of a table
  */
-int sdp_desc_q_put_tail(struct sdpc_desc_q *table,
-				struct sdpc_desc *element)
+int sdp_desc_q_put_tail(struct sdpc_desc_q *table, struct sdpc_desc *element)
 {
-	return _sdp_desc_q_put(table, element, 0);
+	return sdp_desc_q_put(table, element, 0);
 }
 
 /*
@@ -221,7 +217,7 @@ int sdp_desc_q_type_head(struct sdpc_des
  * sdp_desc_q_look_type_head - look at a specific object
  */
 struct sdpc_desc *sdp_desc_q_look_type_head(struct sdpc_desc_q *table, 
-					   enum sdp_desc_type type)
+					    enum sdp_desc_type type)
 {
 	if (!table->head)
 		return NULL;
@@ -233,7 +229,7 @@ struct sdpc_desc *sdp_desc_q_look_type_h
  * sdp_desc_q_look_type_tail - look at the type at the end of the table
  */
 struct sdpc_desc *sdp_desc_q_look_type_tail(struct sdpc_desc_q *table,
-					   enum sdp_desc_type type)
+					    enum sdp_desc_type type)
 {
 	if (!table->head)
 		return NULL;
@@ -245,8 +241,7 @@ struct sdpc_desc *sdp_desc_q_look_type_t
 /*
  * sdp_desc_q_types_size - return the number of elements in the table
  */
-int sdp_desc_q_types_size(struct sdpc_desc_q *table,
-				 enum sdp_desc_type type)
+int sdp_desc_q_types_size(struct sdpc_desc_q *table, enum sdp_desc_type type)
 {
 	return ((SDP_DESC_TYPE_NONE > type) ?
 		table->count[type] : -ERANGE);




More information about the general mailing list