[PATCH 4/4] sh/kexec: Fix kexec build warning
Geoff Levand
geoff at infradead.org
Wed Dec 11 19:18:56 EST 2013
Add a cast to a printk argument to suppress a type mismatch compiler warning.
Signed-off-by: Geoff Levand <geoff at infradead.org> for Huawei, Linaro
---
arch/sh/kernel/machine_kexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c
index 9fea49f..b7e65a8 100644
--- a/arch/sh/kernel/machine_kexec.c
+++ b/arch/sh/kernel/machine_kexec.c
@@ -60,7 +60,7 @@ static void kexec_info(struct kimage *image)
i,
(unsigned int)image->segment[i].mem,
(unsigned int)image->segment[i].mem +
- image->segment[i].memsz,
+ (unsigned int)image->segment[i].memsz,
(unsigned int)image->segment[i].memsz);
}
printk(" start : 0x%08x\n\n", (unsigned int)image->start);
--
1.8.1.2
More information about the kexec
mailing list