Skip to contentSkip to conversation

Remove warning in ftape

TRIVIAL Rusty Russell 1 participant 1 message Mar 22, 2004

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

From: Chris Heath <[email protected]>

---
I sent this to the list a few months ago. Hopefully it won't get lost if I send it via trivial. :-)

Chris

Forwarded by Chris Heath <[email protected]> ----------------------- Original Message -----------------------

   From:    Chris Heath <[email protected]>
   To:      [email protected]
   Date:    Wed, 31 Dec 2003 18:43:35 -0500

Subject: [PATCH][2.6] Remove warning in ftape
----

Here's a trivial patch that removes an unused-variable warning in ftape.

Chris

drivers/char/ftape/lowlevel/ftape-init.c renamed from drivers/char/ftape/lowlevel/ftape-init.c.orig +1 -1
@@ -55,7 +55,7 @@
 char ft_dat[] __initdata = "$Date: 1997/11/06 00:38:08 $";
 
 
-#ifndef CONFIG_FT_NO_TRACE_AT_ALL
+#if defined(MODULE) && !defined(CONFIG_FT_NO_TRACE_AT_ALL)
 static int ft_tracing = -1;
 #endif
 
Signature · 3 lines
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Chris Heath <[email protected]>: Fw: [PATCH][2.6] Remove warning in ftape