[patch, -rc5-mm3] lock validator: sparc64, sparc, m68k, alpha, cris, irqtrace build fix

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

 



Subject: lock validator: sparc64, sparc, m68k, alpha, cris, irqtrace build fix
From: Ingo Molnar <[email protected]>

early_init_irq_lock_type() should only be provided by an architecture
if it offers CONFIG_TRACE_IRQFLAGS.

this makes sparc64 (and probably the other non-genirq arches) build.

Signed-off-by: Ingo Molnar <[email protected]>
---
 include/linux/lockdep.h |    2 ++
 init/main.c             |    1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: linux/include/linux/lockdep.h
===================================================================
--- linux.orig/include/linux/lockdep.h
+++ linux/include/linux/lockdep.h
@@ -226,9 +226,11 @@ struct lockdep_type_key { };
 #endif /* !LOCKDEP */
 
 #ifdef CONFIG_TRACE_IRQFLAGS
+extern void early_init_irq_lock_type(void);
 extern void early_boot_irqs_off(void);
 extern void early_boot_irqs_on(void);
 #else
+# define early_init_irq_lock_type()		do { } while (0)
 # define early_boot_irqs_off()			do { } while (0)
 # define early_boot_irqs_on()			do { } while (0)
 #endif
Index: linux/init/main.c
===================================================================
--- linux.orig/init/main.c
+++ linux/init/main.c
@@ -82,7 +82,6 @@
 
 static int init(void *);
 
-extern void early_init_irq_lock_type(void);
 extern void init_IRQ(void);
 extern void fork_init(unsigned long);
 extern void mca_init(void);
-
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