Skip to contentSkip to conversation

drivers/atm/iphase.c: compilation warning fix

PATCH New Leonardo Potenza 1 participant 1 message Dec 23, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/atm/iphase.c: compilation warning fix

From: Leonardo Potenza <[email protected]>

Compilation warning fix (tcnter and xdump() used only in debug build)

---

When trying to build with CONFIG_ATM_IA_DEBUG not set, I got the following warning messages:
drivers/atm/iphase.c:961: warning: 'tcnter' defined but not used drivers/atm/iphase.c:963: warning: 'xdump' defined but not used

drivers/atm/iphase.c renamed from drivers/atm/iphase.c.orig +2 -0
@@ -958,6 +958,7 @@ static void ia_suni_pm7345_init (IADEV *
 
 /***************************** IA_LIB END *****************************/
     
+#ifdef CONFIG_ATM_IA_DEBUG
 static int tcnter = 0;
 static void xdump( u_char*  cp, int  length, char*  prefix )
 {
@@ -992,6 +993,7 @@ static void xdump( u_char*  cp, int  len
     }
 
 }  /* close xdump(... */
+#endif /* CONFIG_ATM_IA_DEBUG */
 
   
 static struct atm_dev *ia_boards = NULL;