From de9dbbe74d284e0c5bd459efec1be5f2be98234c Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 23 Apr 2003 04:32:50 -0700 Subject: [PATCH] [PATCH] warning fixes Fix some warnings from the new code-patching stuff. --- arch/i386/kernel/module.c | 2 +- arch/i386/kernel/setup.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/i386/kernel/module.c b/arch/i386/kernel/module.c index 8329c897e0936..463a2c7e0acc6 100644 --- a/arch/i386/kernel/module.c +++ b/arch/i386/kernel/module.c @@ -110,7 +110,7 @@ int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me) { - Elf_Shdr *s; + const Elf_Shdr *s; char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; /* look for .altinstructions to patch */ diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index bfa473fc6661e..9c20d88208aee 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c @@ -807,7 +807,7 @@ void apply_alternatives(void *start, void *end) struct alt_instr *a; int diff, i, k; - for (a = start; a < end; + for (a = start; a < (struct alt_instr *)end; a = (void *)ALIGN((unsigned long)(a + 1) + a->instrlen, 4)) { if (!boot_cpu_has(a->cpuid)) continue; -- 2.53.0