From: Andrew Morton Date: Wed, 22 Jun 2005 00:14:28 +0000 (-0700) Subject: [PATCH] arm: irqs_disabled() type fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a558cb4ec43ccbe82e2cf899ced37f29ac017df;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] arm: irqs_disabled() type fix 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h index 8405eb6558ed..39dd7008013c 100644 --- a/include/asm-arm/system.h +++ b/include/asm-arm/system.h @@ -308,7 +308,7 @@ do { \ ({ \ unsigned long flags; \ local_save_flags(flags); \ - flags & PSR_I_BIT; \ + (int)(flags & PSR_I_BIT); \ }) #ifdef CONFIG_SMP