diff options
Diffstat (limited to 'kexec/arch/ia64')
-rw-r--r-- | kexec/arch/ia64/crashdump-ia64.c | 2 | ||||
-rw-r--r-- | kexec/arch/ia64/kexec-elf-ia64.c | 2 | ||||
-rw-r--r-- | kexec/arch/ia64/kexec-ia64.c | 7 |
3 files changed, 6 insertions, 5 deletions
diff --git a/kexec/arch/ia64/crashdump-ia64.c b/kexec/arch/ia64/crashdump-ia64.c index d3bb6f7..6b64271 100644 --- a/kexec/arch/ia64/crashdump-ia64.c +++ b/kexec/arch/ia64/crashdump-ia64.c @@ -73,7 +73,7 @@ static int seg_comp(const void *a, const void *b) */ static void add_loaded_segments_info(struct mem_ehdr *ehdr) { - int i; + unsigned i; for(i = 0; i < ehdr->e_phnum; i++) { struct mem_phdr *phdr; phdr = &ehdr->e_phdr[i]; diff --git a/kexec/arch/ia64/kexec-elf-ia64.c b/kexec/arch/ia64/kexec-elf-ia64.c index 71283c6..f5273b7 100644 --- a/kexec/arch/ia64/kexec-elf-ia64.c +++ b/kexec/arch/ia64/kexec-elf-ia64.c @@ -98,7 +98,7 @@ void elf_ia64_usage(void) */ void move_loaded_segments(struct mem_ehdr *ehdr, unsigned long addr) { - int i; + unsigned i; long offset; struct mem_phdr *phdr; for(i = 0; i < ehdr->e_phnum; i++) { diff --git a/kexec/arch/ia64/kexec-ia64.c b/kexec/arch/ia64/kexec-ia64.c index 657a6b7..450931c 100644 --- a/kexec/arch/ia64/kexec-ia64.c +++ b/kexec/arch/ia64/kexec-ia64.c @@ -101,7 +101,7 @@ int get_memory_ranges(struct memory_range **range, int *ranges, while(fgets(line, sizeof(line), fp) != 0) { unsigned long start, end; char *str; - int type; + unsigned type; int consumed; int count; if (memory_ranges >= max_memory_ranges) @@ -219,13 +219,14 @@ int arch_compat_trampoline(struct kexec_info *UNUSED(info)) int update_loaded_segments(struct mem_ehdr *ehdr) { int i; + unsigned u; struct mem_phdr *phdr; unsigned long start_addr = ULONG_MAX, end_addr = 0; unsigned long align = 1UL<<26; /* 64M */ unsigned long start, end; - for (i = 0; i < ehdr->e_phnum; i++) { - phdr = &ehdr->e_phdr[i]; + for (u = 0; u < ehdr->e_phnum; u++) { + phdr = &ehdr->e_phdr[u]; if (phdr->p_type != PT_LOAD) continue; if (phdr->p_paddr < start_addr) |