diff options
Diffstat (limited to 'kexec/arch/i386')
-rw-r--r-- | kexec/arch/i386/crashdump-x86.c | 3 | ||||
-rw-r--r-- | kexec/arch/i386/kexec-multiboot-x86.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c index 7e86819..1782712 100644 --- a/kexec/arch/i386/crashdump-x86.c +++ b/kexec/arch/i386/crashdump-x86.c @@ -375,7 +375,8 @@ static void ultoa(unsigned long i, char *str) * memory regions the new kernel can use to boot into. */ static int cmdline_add_memmap(char *cmdline, struct memory_range *memmap_p) { - int i, cmdlen, len, min_sizek = 100; + int i, cmdlen, len; + unsigned long min_sizek = 100; char str_mmap[256], str_tmp[20]; /* Exact map */ diff --git a/kexec/arch/i386/kexec-multiboot-x86.c b/kexec/arch/i386/kexec-multiboot-x86.c index bb77dbc..2a8a8a8 100644 --- a/kexec/arch/i386/kexec-multiboot-x86.c +++ b/kexec/arch/i386/kexec-multiboot-x86.c @@ -154,6 +154,7 @@ int multiboot_x86_load(int argc, char **argv, const char *buf, off_t len, struct AddrRangeDesc *mmap; int command_line_len; int i; + uint32_t u; int opt; int modules, mod_command_line_space; #define OPT_CL (OPT_ARCH_MAX+0) @@ -375,8 +376,8 @@ int multiboot_x86_load(int argc, char **argv, const char *buf, off_t len, /* Relocate offsets in the MBI to absolute addresses */ mbi_offset = mbi_base; modp = ((void *)mbi) + mbi->mods_addr; - for (i=0; i<mbi->mods_count; i++) { - modp[i].cmdline += mbi_offset; + for (u = 0; u < mbi->mods_count; u++) { + modp[u].cmdline += mbi_offset; } mbi->mods_addr += mbi_offset; mbi->cmdline += mbi_offset; |