aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRui Sousa <rui.p.m.sousa@gmail.com>2008-09-04 13:47:53 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-05 06:56:26 -0400
commit8c56250f48347750c82ab18d98d647dcf99ca674 (patch)
tree7886a7900494c4fafef7e5d4d5b17af19c7f7f39 /include
parentcdad72207d164569cb4bf647eb824a7f93e8d388 (diff)
lockdep, UML: fix compilation when CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
Hiroshi Shimamoto reported: > > !TRACE_IRQFLAGS_SUPPORT mode of build for future work, it can be > > restored via a simple revert. > > Hi, it seems that this patch breaks uml build. > > kernel/printk.c: In function 'vprintk': > kernel/printk.c:674: error: implicit declaration of function > 'raw_local_irq_save' kernel/printk.c:772: error: implicit declaration of > function 'raw_local_irq_restore' With the patch bellow it compiles (make ARCH=um with a x86 host), but I'm really out of my league on this one... Reported-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/asm-um/system-generic.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/asm-um/system-generic.h b/include/asm-um/system-generic.h
index 5bcfa35e7a22..f1ea4da34fad 100644
--- a/include/asm-um/system-generic.h
+++ b/include/asm-um/system-generic.h
@@ -4,15 +4,15 @@
4#include "asm/arch/system.h" 4#include "asm/arch/system.h"
5 5
6#undef switch_to 6#undef switch_to
7#undef local_irq_save 7#undef raw_local_irq_save
8#undef local_irq_restore 8#undef raw_local_irq_restore
9#undef local_irq_disable 9#undef raw_local_irq_disable
10#undef local_irq_enable 10#undef raw_local_irq_enable
11#undef local_save_flags 11#undef raw_local_save_flags
12#undef local_irq_restore 12#undef raw_local_irq_restore
13#undef local_irq_enable 13#undef raw_local_irq_enable
14#undef local_irq_disable 14#undef raw_local_irq_disable
15#undef local_irq_save 15#undef raw_local_irq_save
16#undef irqs_disabled 16#undef irqs_disabled
17 17
18extern void *switch_to(void *prev, void *next, void *last); 18extern void *switch_to(void *prev, void *next, void *last);
@@ -23,21 +23,21 @@ extern int get_signals(void);
23extern void block_signals(void); 23extern void block_signals(void);
24extern void unblock_signals(void); 24extern void unblock_signals(void);
25 25
26#define local_save_flags(flags) do { typecheck(unsigned long, flags); \ 26#define raw_local_save_flags(flags) do { typecheck(unsigned long, flags); \
27 (flags) = get_signals(); } while(0) 27 (flags) = get_signals(); } while(0)
28#define local_irq_restore(flags) do { typecheck(unsigned long, flags); \ 28#define raw_local_irq_restore(flags) do { typecheck(unsigned long, flags); \
29 set_signals(flags); } while(0) 29 set_signals(flags); } while(0)
30 30
31#define local_irq_save(flags) do { local_save_flags(flags); \ 31#define raw_local_irq_save(flags) do { raw_local_save_flags(flags); \
32 local_irq_disable(); } while(0) 32 raw_local_irq_disable(); } while(0)
33 33
34#define local_irq_enable() unblock_signals() 34#define raw_local_irq_enable() unblock_signals()
35#define local_irq_disable() block_signals() 35#define raw_local_irq_disable() block_signals()
36 36
37#define irqs_disabled() \ 37#define irqs_disabled() \
38({ \ 38({ \
39 unsigned long flags; \ 39 unsigned long flags; \
40 local_save_flags(flags); \ 40 raw_local_save_flags(flags); \
41 (flags == 0); \ 41 (flags == 0); \
42}) 42})
43 43