[openib-general] [PATCH] GSI: Take care of gsi_dtgrm_pool_create unresolved symbol

Hal Rosenstock halr at voltaire.com
Wed Aug 4 11:45:16 PDT 2004


Take care of gsi_dtgrm_pool_create unresolved symbol in gsi_main.c

Index: gsi_main.c
===================================================================
--- gsi_main.c	(revision 585)
+++ gsi_main.c	(working copy)
@@ -881,9 +881,8 @@
 			goto error3;
 		}
 
-		if (gsi_dtgrm_pool_create
-		    (GSI_RMPP_SND_POOL_SIZE,
-		     &newinfo->rmpp_snd_dtgrm_pool) < 0) {
+		if (gsi_dtgrm_pool_create(GSI_RMPP_SND_POOL_SIZE,
+					  &newinfo->rmpp_snd_dtgrm_pool) < 0) {
 			printk(KERN_ERR "Could not create RMPP send pool\n");
 			ret = -ENOMEM;
 			goto error4;
@@ -2921,12 +2920,17 @@
 /*
  * Create datagram pool
  */
+#if 0				/* GSI_POOL_TRACE */
 int
 gsi_dtgrm_pool_create_named(u32 cnt, void **handle, char *modname)
+#else
+int gsi_dtgrm_pool_create(u32 cnt, void **handle)
+#endif
 {
 	struct gsi_dtgrm_pool_info_st *pool;
 	char name[GSI_POOL_MAX_NAME_LEN];
 
+#if 0				/* GSI_POOL_TRACE */
 	/*
 	 * Sanity check
 	 */
@@ -2934,14 +2938,16 @@
 		printk(KERN_ERR "Invalid pool name\n");
 		return -ENOENT;
 	}
+	sprintf(name, "gsi_%s%-d", modname, gsi_pool_cnt++);
+#else
+	sprintf(name, "gsi%-d", gsi_pool_cnt++);
+#endif
 
 	if ((pool = kmalloc(sizeof (*pool), GFP_KERNEL)) == NULL) {
 		printk(KERN_ERR "Memory allocation error\n");
 		return -ENOMEM;
 	}
 
-	sprintf(name, "gsi_%s%-d", modname, gsi_pool_cnt++);
-
 	if ((pool->cache = kmem_cache_create(name,
 					     sizeof (struct gsi_dtgrm_priv_st),
 					     0,
@@ -3122,7 +3128,11 @@
  */
 EXPORT_SYMBOL_NOVERS(gsi_reg_class);
 EXPORT_SYMBOL_NOVERS(gsi_dereg_class);
+#if 0				/* GSI_POOL_TRACE */
 EXPORT_SYMBOL_NOVERS(gsi_dtgrm_pool_create_named);
+#else
+EXPORT_SYMBOL_NOVERS(gsi_dtgrm_pool_create);
+#endif
 EXPORT_SYMBOL_NOVERS(gsi_dtgrm_pool_destroy);
 EXPORT_SYMBOL_NOVERS(gsi_dtgrm_pool_get);
 EXPORT_SYMBOL_NOVERS(gsi_dtgrm_pool_put);






More information about the general mailing list