mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drivers/atm/iphase.c: compilation warning fix
@ 2008-04-01 21:49 Leonardo Potenza
  2008-04-02  7:03 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Leonardo Potenza @ 2008-04-01 21:49 UTC (permalink / raw)
  To: kernel-janitors; +Cc: chas, linux-kernel

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;  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers/atm/iphase.c: compilation warning fix
  2008-04-01 21:49 [PATCH] drivers/atm/iphase.c: compilation warning fix Leonardo Potenza
@ 2008-04-02  7:03 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-04-02  7:03 UTC (permalink / raw)
  To: lpotenza; +Cc: kernel-janitors, chas, linux-kernel

From: Leonardo Potenza <lpotenza@inwind.it>
Date: Tue, 1 Apr 2008 23:49:29 +0200

> 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>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-02  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-01 21:49 [PATCH] drivers/atm/iphase.c: compilation warning fix Leonardo Potenza
2008-04-02  7:03 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®