login
Header Space

 
 

[PATCH] drivers/atm/iphase.c: compilation warning fix

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel-janitors@...>
Cc: <chas@...>, <linux-kernel@...>
Date: Tuesday, April 1, 2008 - 5:49 pm

From: Leonardo Potenza <lpotenza@inwind.it>

Removed the warning messages:
drivers/atm/iphase.c:961: warning: 'tcnter' defined but not used
drivers/atm/iphase.c:963: warning: 'xdump' defined but not used

tcnter and xdump() are used only in debug build

Signed-off-by: Leonardo Potenza <lpotenza@inwind.it>
---

iphase.c |    2 ++
1 file changed, 2 insertions(+)

--- linux-2.6.orig/drivers/atm/iphase.c
+++ linux-2.6/drivers/atm/iphase.c
@@ -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;  
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] drivers/atm/iphase.c: compilation warning fix, Leonardo Potenza, (Tue Apr 1, 5:49 pm)
speck-geostationary