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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* [email protected] <[email protected]> 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 <[email protected]>

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 <[email protected]>
Signed-off-by: Arjan van de Ven <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux