Skip to content

Commit

Permalink
frv: fix irqs_disabled() to return an int, not an unsigned long
Browse files Browse the repository at this point in the history
Fix FRV irqs_disabled() to return an int, not an unsigned long to avoid
this warning:

kernel/sched.c: In function '__might_sleep':
kernel/sched.c:8198: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and torvalds committed Jul 12, 2008
1 parent d1a5d19 commit d3297a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-frv/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ do { \
} while(0)

#define irqs_disabled() \
({unsigned long flags; local_save_flags(flags); flags; })
({unsigned long flags; local_save_flags(flags); !!flags; })

#define local_irq_save(flags) \
do { \
Expand Down

0 comments on commit d3297a6

Please sign in to comment.