Skip to content

Commit

Permalink
[PATCH] arm: irqs_disabled() type fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jun 22, 2005
1 parent 9723d95 commit 9a558cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-arm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ do { \
({ \
unsigned long flags; \
local_save_flags(flags); \
flags & PSR_I_BIT; \
(int)(flags & PSR_I_BIT); \
})

#ifdef CONFIG_SMP
Expand Down

0 comments on commit 9a558cb

Please sign in to comment.