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

Tom Duffy Tom.Duffy at Sun.COM
Mon Feb 28 14:00:20 PST 2005


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

Index: drivers/infiniband/ulp/sdp/sdp_advt.c
===================================================================
--- drivers/infiniband/ulp/sdp/sdp_advt.c	(revision 1929)
+++ drivers/infiniband/ulp/sdp/sdp_advt.c	(working copy)
@@ -34,7 +34,7 @@
 
 #include "sdp_main.h"
 
-static kmem_cache_t *__sdp_advt_cache = NULL;
+static kmem_cache_t *sdp_advt_cache = NULL;
 
 /*
  * module specific functions
@@ -51,7 +51,7 @@ struct sdpc_advt *sdp_advt_create(void)
 {
 	struct sdpc_advt *advt;
 
-	advt = kmem_cache_alloc(__sdp_advt_cache, SLAB_KERNEL);
+	advt = kmem_cache_alloc(sdp_advt_cache, SLAB_KERNEL);
 	if (advt) {
 		advt->next = NULL;
 		advt->prev = NULL;
@@ -77,7 +77,7 @@ int sdp_advt_destroy(struct sdpc_advt *a
 	/*
 	 * return the object to its cache
 	 */
-	kmem_cache_free(__sdp_advt_cache, advt);
+	kmem_cache_free(sdp_advt_cache, advt);
 
 	return 0;
 }
@@ -187,16 +187,16 @@ int sdp_main_advt_init(void)
 	/*
 	 * initialize the caches only once.
 	 */
-	if (__sdp_advt_cache) {
+	if (sdp_advt_cache) {
 		sdp_warn("Advertisment caches already initialized.");
 		return -EINVAL;
 	}
 
-	__sdp_advt_cache = kmem_cache_create("sdp_advt",
+	sdp_advt_cache = kmem_cache_create("sdp_advt",
 					     sizeof(struct sdpc_advt),
 					     0, SLAB_HWCACHE_ALIGN, NULL,
 					     NULL);
-	if (!__sdp_advt_cache)
+	if (!sdp_advt_cache)
 		return -ENOMEM;
 
 	return 0;
@@ -211,9 +211,9 @@ void sdp_main_advt_cleanup(void)
 	/*
 	 * cleanup the caches
 	 */
-	kmem_cache_destroy(__sdp_advt_cache);
+	kmem_cache_destroy(sdp_advt_cache);
 	/*
 	 * null out entries.
 	 */
-	__sdp_advt_cache = NULL;
+	sdp_advt_cache = NULL;
 }




More information about the general mailing list