* [PATCH] Fix FRV irqs_disabled() to return an int, not an unsigned long
@ 2008-07-11 12:35 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2008-07-11 12:35 UTC (permalink / raw)
To: akpm; +Cc: dhowells, linux-kernel
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 <dhowells@redhat.com>
---
include/asm-frv/system.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/asm-frv/system.h b/include/asm-frv/system.h
index d3a12a9..7742ec0 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 { \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-11 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-11 12:35 [PATCH] Fix FRV irqs_disabled() to return an int, not an unsigned long David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®