aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Sousa <rui.p.m.sousa@gmail.com>2008-09-03 11:53:07 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-04 10:37:59 -0400
commitbd8fbdee6562ee526f3c2582a3b373ef195015dd (patch)
treea8270c0bc85a54e2cf9978fdae8fb28169ddad42
parentd210baf53b699fc61aa891c177b71d7082d3b957 (diff)
lockdep: fix compilation when CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
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>
-rw-r--r--include/linux/irqflags.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h
index 74bde13224c9..f2993512b3b5 100644
--- a/include/linux/irqflags.h
+++ b/include/linux/irqflags.h
@@ -52,10 +52,10 @@
52# define start_critical_timings() do { } while (0) 52# define start_critical_timings() do { } while (0)
53#endif 53#endif
54 54
55#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
56
57#include <asm/irqflags.h> 55#include <asm/irqflags.h>
58 56
57#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
58
59#define local_irq_enable() \ 59#define local_irq_enable() \
60 do { trace_hardirqs_on(); raw_local_irq_enable(); } while (0) 60 do { trace_hardirqs_on(); raw_local_irq_enable(); } while (0)
61#define local_irq_disable() \ 61#define local_irq_disable() \
@@ -84,21 +84,20 @@
84 * The local_irq_*() APIs are equal to the raw_local_irq*() 84 * The local_irq_*() APIs are equal to the raw_local_irq*()
85 * if !TRACE_IRQFLAGS. 85 * if !TRACE_IRQFLAGS.
86 */ 86 */
87# define raw_local_irq_disable() local_irq_disable() 87#define local_irq_disable() raw_local_irq_disable()
88# define raw_local_irq_enable() local_irq_enable() 88#define local_irq_enable() raw_local_irq_enable()
89# define raw_local_irq_save(flags) \ 89#define local_irq_save(flags) \
90 do { \ 90 do { \
91 typecheck(unsigned long, flags); \ 91 typecheck(unsigned long, flags); \
92 local_irq_save(flags); \ 92 raw_local_irq_save(flags); \
93 } while (0) 93 } while (0)
94# define raw_local_irq_restore(flags) \ 94# define local_irq_restore(flags) \
95 do { \ 95 do { \
96 typecheck(unsigned long, flags); \ 96 typecheck(unsigned long, flags); \
97 local_irq_restore(flags); \ 97 raw_local_irq_restore(flags); \
98 } while (0) 98 } while (0)
99#endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */ 99#endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */
100 100
101#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
102#define safe_halt() \ 101#define safe_halt() \
103 do { \ 102 do { \
104 trace_hardirqs_on(); \ 103 trace_hardirqs_on(); \
@@ -124,6 +123,5 @@
124 typecheck(unsigned long, flags); \ 123 typecheck(unsigned long, flags); \
125 raw_irqs_disabled_flags(flags); \ 124 raw_irqs_disabled_flags(flags); \
126}) 125})
127#endif /* CONFIG_X86 */
128 126
129#endif 127#endif