Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Howells and committed by
Linus Torvalds
d3297a64 d1a5d197

+1 -1
+1 -1
include/asm-frv/system.h
··· 87 87 } while(0) 88 88 89 89 #define irqs_disabled() \ 90 - ({unsigned long flags; local_save_flags(flags); flags; }) 90 + ({unsigned long flags; local_save_flags(flags); !!flags; }) 91 91 92 92 #define local_irq_save(flags) \ 93 93 do { \