Commit db6e3f91 authored by Michal Simek's avatar Michal Simek

microblaze: Fix cast warning for init.c

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 4ae78338
...@@ -80,15 +80,15 @@ void __init setup_memory(void) ...@@ -80,15 +80,15 @@ void __init setup_memory(void)
memory_size = memory_end - memory_start; memory_size = memory_end - memory_start;
PAGE_OFFSET = memory_start; PAGE_OFFSET = memory_start;
printk(KERN_INFO "%s: Main mem: 0x%x-0x%x, " printk(KERN_INFO "%s: Main mem: 0x%x-0x%x, "
"size 0x%08x\n", __func__, memory_start, "size 0x%08x\n", __func__, (u32) memory_start,
memory_end, memory_size); (u32) memory_end, (u32) memory_size);
break; break;
} }
} }
if (!memory_start || !memory_end) { if (!memory_start || !memory_end) {
panic("%s: Missing memory setting 0x%08x-0x%08x\n", panic("%s: Missing memory setting 0x%08x-0x%08x\n",
__func__, memory_start, memory_end); __func__, (u32) memory_start, (u32) memory_end);
} }
/* reservation of region where is the kernel */ /* reservation of region where is the kernel */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment