[PATCH] arm: irqs_disabled() type fix
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Jun 2005 00:14:28 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 01:46:11 +0000 (18:46 -0700)
kernel/sched.c: In function `__might_sleep':
kernel/sched.c:5461: warning: int format, long unsigned int arg (arg 3)

We expect irqs_disabled() to return an int (poor man's bool).

Acked-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-arm/system.h

index 8405eb6558edf141999df5ace0c3ba4bf7070ce4..39dd7008013c839a102bc49f53ba4ba5691ab864 100644 (file)
@@ -308,7 +308,7 @@ do {                                                                        \
 ({                                     \
        unsigned long flags;            \
        local_save_flags(flags);        \
-       flags & PSR_I_BIT;              \
+       (int)(flags & PSR_I_BIT);       \
 })
 
 #ifdef CONFIG_SMP