Commit de9dbbe7 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] warning fixes

Fix some warnings from the new code-patching stuff.
parent f1cd7ffc
......@@ -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 */
......
......@@ -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;
......
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