From: David Howells Date: Sat, 12 Jul 2008 20:47:58 +0000 (-0700) Subject: frv: fix irqs_disabled() to return an int, not an unsigned long X-Git-Tag: MMI-PSA29.97-13-9~33713 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d3297a644a0ab784e0c810ceca6bf35a67868ad9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git frv: fix irqs_disabled() to return an int, not an unsigned long 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-frv/system.h b/include/asm-frv/system.h index d3a12a9079f7..7742ec000cc4 100644 --- a/include/asm-frv/system.h +++ b/include/asm-frv/system.h @@ -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 { \