[patch 2/6] uml: fix warning for unused var

From: blaisorblade_spam
Date: Mon Oct 11 2004 - 19:57:51 EST



That var is used only when CONFIG_UML_REAL_TIME_CLOCK is on, so #ifdef its
definition.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@xxxxxxxx>
---

linux-2.6.9-current-paolo/arch/um/kernel/time_kern.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN arch/um/kernel/time_kern.c~uml-fix-unused-warning arch/um/kernel/time_kern.c
--- linux-2.6.9-current/arch/um/kernel/time_kern.c~uml-fix-unused-warning 2004-10-12 01:05:59.458570536 +0200
+++ linux-2.6.9-current-paolo/arch/um/kernel/time_kern.c 2004-10-12 01:05:59.460570232 +0200
@@ -44,7 +44,9 @@ int timer_irq_inited = 0;

static int first_tick;
static unsigned long long prev_usecs;
+#ifdef CONFIG_UML_REAL_TIME_CLOCK
static long long delta; /* Deviation per interval */
+#endif

#define MILLION 1000000

@@ -60,7 +62,7 @@ void timer_irq(union uml_pt_regs *regs)
}

if(first_tick){
-#if defined(CONFIG_UML_REAL_TIME_CLOCK)
+#ifdef CONFIG_UML_REAL_TIME_CLOCK
/* We've had 1 tick */
unsigned long long usecs = os_usecs();

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/