No subject


Thu Jan 15 22:29:28 CST 2009


Modified:
    linux/team/tzafrir/xpp-backport-210/drivers/dahdi/xpp/xproto.c

Modified: linux/team/tzafrir/xpp-backport-210/drivers/dahdi/xpp/xproto.c
URL: http://svn.digium.com/svn-view/dahdi/linux/team/tzafrir/xpp-backport-210/drivers/dahdi/xpp/xproto.c?view=diff&rev=6088&r1=6087&r2=6088
==============================================================================
--- linux/team/tzafrir/xpp-backport-210/drivers/dahdi/xpp/xproto.c (original)
+++ linux/team/tzafrir/xpp-backport-210/drivers/dahdi/xpp/xproto.c Thu Mar  5 14:34:20 2009
@@ -93,7 +93,9 @@
 	}
 	if(xtable) {
 		BUG_ON(!xtable->owner);
+#ifdef CONFIG_MODULE_UNLOAD
 		DBG(GENERAL, "%s refcount was %d\n", xtable->name, module_refcount(xtable->owner));
+#endif
 		if(!try_module_get(xtable->owner)) {
 			ERR("%s: try_module_get for %s failed.\n", __FUNCTION__, xtable->name);
 			return NULL;
@@ -105,8 +107,10 @@
 void xproto_put(const xproto_table_t *xtable)
 {
 	BUG_ON(!xtable);
+#ifdef CONFIG_MODULE_UNLOAD
 	DBG(GENERAL, "%s refcount was %d\n", xtable->name, module_refcount(xtable->owner));
 	BUG_ON(module_refcount(xtable->owner) <= 0);
+#endif
 	module_put(xtable->owner);
 }
 




More information about the dahdi-commits mailing list