[patch, -rc5-mm3] lock validator: early_init_irq_lock_type() build fix

From: Ingo Molnar
Date: Sun Jun 04 2006 - 17:49:48 EST



* Valdis.Kletnieks@xxxxxx <Valdis.Kletnieks@xxxxxx> wrote:

> Just for grins, I tried building this, and got this error:

the patch below should fix this.

Ingo

----
Subject: lock validator: early_init_irq_lock_type() build fix
From: Ingo Molnar <mingo@xxxxxxx>

fix build bug reported by Valdis Kletnieks: if the lock validator
is disabled in the .config then kernel/irq/handle.c would not build.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>
---
kernel/irq/handle.c | 4 ++++
1 file changed, 4 insertions(+)

Index: linux/kernel/irq/handle.c
===================================================================
--- linux.orig/kernel/irq/handle.c
+++ linux/kernel/irq/handle.c
@@ -238,6 +238,8 @@ out:
return 1;
}

+#ifdef CONFIG_TRACE_IRQFLAGS
+
/*
* lockdep: we want to handle all irq_desc locks as a single lock-type:
*/
@@ -250,3 +252,5 @@ void early_init_irq_lock_type(void)
for (i = 0; i < NR_IRQS; i++)
spin_lock_init_key(&irq_desc[i].lock, &irq_desc_lock_type);
}
+
+#endif
-
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/