[openib-general] [PATCH][SDP][11/22] Remove use of leading underscores in static names in sdp_msgs.h

Tom Duffy Tom.Duffy at Sun.COM
Mon Feb 28 14:01:52 PST 2005


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

Index: drivers/infiniband/ulp/sdp/sdp_msgs.h
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_msgs.h	(revision 1929)
+++ drivers/infiniband/ulp/sdp/sdp_msgs.h	(working copy)
@@ -276,9 +276,9 @@ struct msg_hdr_sch {
  */
 
 /*
- * __sdp_msg_swap_bsdh - SDP header endian byte swapping
+ * sdp_msg_swap_bsdh - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_bsdh(struct msg_hdr_bsdh *header)
+static inline void sdp_msg_swap_bsdh(struct msg_hdr_bsdh *header)
 {
 	header->recv_bufs = cpu_to_be16(header->recv_bufs);
 	header->size = cpu_to_be32(header->size);
@@ -287,9 +287,9 @@ static inline void __sdp_msg_swap_bsdh(s
 }
 
 /*
- * __sdp_msg_swap_hh - SDP header endian byte swapping
+ * sdp_msg_swap_hh - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_hh(struct msg_hdr_hh *header)
+static inline void sdp_msg_swap_hh(struct msg_hdr_hh *header)
 {
 	header->r_rcv_size = cpu_to_be32(header->r_rcv_size);
 	header->l_rcv_size = cpu_to_be32(header->l_rcv_size);
@@ -305,17 +305,17 @@ static inline void __sdp_msg_swap_hh(str
 }
 
 /*
- * __sdp_msg_swap_hah - SDP header endian byte swapping
+ * sdp_msg_swap_hah - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_hah(struct msg_hdr_hah *header)
+static inline void sdp_msg_swap_hah(struct msg_hdr_hah *header)
 {
 	header->l_rcv_size = cpu_to_be32(header->l_rcv_size);
 }
 
 /*
- * __sdp_msg_swap_srcah - SDP header endian byte swapping
+ * sdp_msg_swap_srcah - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_srcah(struct msg_hdr_srcah *header)
+static inline void sdp_msg_swap_srcah(struct msg_hdr_srcah *header)
 {
 	header->size = cpu_to_be32(header->size);
 #ifdef _SDP_MS_APRIL_ERROR_COMPAT
@@ -328,9 +328,9 @@ static inline void __sdp_msg_swap_srcah(
 }
 
 /*
- * __sdp_msg_swap_snkah - SDP header endian byte swapping
+ * sdp_msg_swap_snkah - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_snkah(struct msg_hdr_snkah *header)
+static inline void sdp_msg_swap_snkah(struct msg_hdr_snkah *header)
 {
 	header->size = cpu_to_be32(header->size);
 	header->r_key = cpu_to_be32(header->r_key);
@@ -339,74 +339,74 @@ static inline void __sdp_msg_swap_snkah(
 }
 
 /*
- * __sdp_msg_swap_rwch - SDP header endian byte swapping
+ * sdp_msg_swap_rwch - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_rwch(struct msg_hdr_rwch *header)
+static inline void sdp_msg_swap_rwch(struct msg_hdr_rwch *header)
 {
 	header->size = cpu_to_be32(header->size);
 }
 
 /*
- * __sdp_msg_swap_rrch - SDP header endian byte swapping
+ * sdp_msg_swap_rrch - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_rrch(struct msg_hdr_rrch *header)
+static inline void sdp_msg_swap_rrch(struct msg_hdr_rrch *header)
 {
 	header->size = cpu_to_be32(header->size);
 }
 
 /*
- * __sdp_msg_swap_mch - SDP header endian byte swapping
+ * sdp_msg_swap_mch - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_mch(struct msg_hdr_mch *header)
+static inline void sdp_msg_swap_mch(struct msg_hdr_mch *header)
 {
 }
 
 /*
- * __sdp_msg_swap_crbh - SDP header endian byte swapping
+ * sdp_msg_swap_crbh - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_crbh(struct msg_hdr_crbh *header)
+static inline void sdp_msg_swap_crbh(struct msg_hdr_crbh *header)
 {
 	header->size = cpu_to_be32(header->size);
 }
 
 /*
- * __sdp_msg_swap_crbah - SDP header endian byte swapping
+ * sdp_msg_swap_crbah - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_crbah(struct msg_hdr_crbah *header)
+static inline void sdp_msg_swap_crbah(struct msg_hdr_crbah *header)
 {
 	header->size = cpu_to_be32(header->size);
 }
 
 /*
- * __sdp_msg_swap_sch - SDP header endian byte swapping
+ * sdp_msg_swap_sch - SDP header endian byte swapping
  */
-static inline void __sdp_msg_swap_sch(struct msg_hdr_sch *header)
+static inline void sdp_msg_swap_sch(struct msg_hdr_sch *header)
 {
 	header->service_id = cpu_to_be64(header->service_id);
 }
 
-#define _sdp_msg_cpu_to_net_bsdh  __sdp_msg_swap_bsdh
-#define _sdp_msg_net_to_cpu_bsdh  __sdp_msg_swap_bsdh
-#define _sdp_msg_cpu_to_net_hh    __sdp_msg_swap_hh
-#define _sdp_msg_net_to_cpu_hh    __sdp_msg_swap_hh
-#define _sdp_msg_cpu_to_net_hah   __sdp_msg_swap_hah
-#define _sdp_msg_net_to_cpu_hah   __sdp_msg_swap_hah
-#define _sdp_msg_cpu_to_net_srcah __sdp_msg_swap_srcah
-#define _sdp_msg_net_to_cpu_srcah __sdp_msg_swap_srcah
-#define _sdp_msg_cpu_to_net_snkah __sdp_msg_swap_snkah
-#define _sdp_msg_net_to_cpu_snkah __sdp_msg_swap_snkah
-#define _sdp_msg_cpu_to_net_rwch  __sdp_msg_swap_rwch
-#define _sdp_msg_net_to_cpu_rwch  __sdp_msg_swap_rwch
-#define _sdp_msg_cpu_to_net_rrch  __sdp_msg_swap_rrch
-#define _sdp_msg_net_to_cpu_rrch  __sdp_msg_swap_rrch
-#define _sdp_msg_cpu_to_net_mch   __sdp_msg_swap_mch
-#define _sdp_msg_net_to_cpu_mch   __sdp_msg_swap_mch
-#define _sdp_msg_cpu_to_net_crbh  __sdp_msg_swap_crbh
-#define _sdp_msg_net_to_cpu_crbh  __sdp_msg_swap_crbh
-#define _sdp_msg_cpu_to_net_crbah __sdp_msg_swap_crbah
-#define _sdp_msg_net_to_cpu_crbah __sdp_msg_swap_crbah
-#define _sdp_msg_cpu_to_net_sch   __sdp_msg_swap_sch
-#define _sdp_msg_net_to_cpu_sch   __sdp_msg_swap_sch
+#define sdp_msg_cpu_to_net_bsdh  sdp_msg_swap_bsdh
+#define sdp_msg_net_to_cpu_bsdh  sdp_msg_swap_bsdh
+#define sdp_msg_cpu_to_net_hh    sdp_msg_swap_hh
+#define sdp_msg_net_to_cpu_hh    sdp_msg_swap_hh
+#define sdp_msg_cpu_to_net_hah   sdp_msg_swap_hah
+#define sdp_msg_net_to_cpu_hah   sdp_msg_swap_hah
+#define sdp_msg_cpu_to_net_srcah sdp_msg_swap_srcah
+#define sdp_msg_net_to_cpu_srcah sdp_msg_swap_srcah
+#define sdp_msg_cpu_to_net_snkah sdp_msg_swap_snkah
+#define sdp_msg_net_to_cpu_snkah sdp_msg_swap_snkah
+#define sdp_msg_cpu_to_net_rwch  sdp_msg_swap_rwch
+#define sdp_msg_net_to_cpu_rwch  sdp_msg_swap_rwch
+#define sdp_msg_cpu_to_net_rrch  sdp_msg_swap_rrch
+#define sdp_msg_net_to_cpu_rrch  sdp_msg_swap_rrch
+#define sdp_msg_cpu_to_net_mch   sdp_msg_swap_mch
+#define sdp_msg_net_to_cpu_mch   sdp_msg_swap_mch
+#define sdp_msg_cpu_to_net_crbh  sdp_msg_swap_crbh
+#define sdp_msg_net_to_cpu_crbh  sdp_msg_swap_crbh
+#define sdp_msg_cpu_to_net_crbah sdp_msg_swap_crbah
+#define sdp_msg_net_to_cpu_crbah sdp_msg_swap_crbah
+#define sdp_msg_cpu_to_net_sch   sdp_msg_swap_sch
+#define sdp_msg_net_to_cpu_sch   sdp_msg_swap_sch
 
 /*
  * Miscellaneous message related informtation




More information about the general mailing list