]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
lockdep: fix compilation when CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
authorRui Sousa <rui.p.m.sousa@gmail.com>
Wed, 3 Sep 2008 15:53:07 +0000 (17:53 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Sep 2008 14:37:59 +0000 (16:37 +0200)
This patch fixes compilation if CONFIG_TRACE_IRQFLAGS_SUPPORT is ever
disabled (which is currently not allowed by Kconfig). Alternatively
we could just remove the option altogether and the associated code
paths. Since the compilation error has been in the tree for at
least two years and no one noticed it, I guess we don't really have
the need for CONFIG_TRACE_IRQFLAGS_SUPPORT=n.

Boot tested on x86 UP.

Signed-off-by: Rui Sousa <rui.p.m.sousa@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/irqflags.h

index 74bde13224c926f5204a2c514609def00d465325..f2993512b3b5785b8f8cdcbe4efe488d0a26262d 100644 (file)
 # define start_critical_timings() do { } while (0)
 #endif
 
-#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
-
 #include <asm/irqflags.h>
 
+#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
+
 #define local_irq_enable() \
        do { trace_hardirqs_on(); raw_local_irq_enable(); } while (0)
 #define local_irq_disable() \
  * The local_irq_*() APIs are equal to the raw_local_irq*()
  * if !TRACE_IRQFLAGS.
  */
-# define raw_local_irq_disable()       local_irq_disable()
-# define raw_local_irq_enable()                local_irq_enable()
-# define raw_local_irq_save(flags)                     \
+#define local_irq_disable()            raw_local_irq_disable()
+#define local_irq_enable()             raw_local_irq_enable()
+#define local_irq_save(flags)                          \
        do {                                            \
                typecheck(unsigned long, flags);        \
-               local_irq_save(flags);                  \
+               raw_local_irq_save(flags);              \
        } while (0)
-# define raw_local_irq_restore(flags)                  \
+# define local_irq_restore(flags)                      \
        do {                                            \
                typecheck(unsigned long, flags);        \
-               local_irq_restore(flags);               \
+               raw_local_irq_restore(flags);           \
        } while (0)
 #endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */
 
-#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
 #define safe_halt()                                            \
        do {                                                    \
                trace_hardirqs_on();                            \
        typecheck(unsigned long, flags);        \
        raw_irqs_disabled_flags(flags);         \
 })
-#endif         /* CONFIG_X86 */
 
 #endif