Commit 84860f99 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] load_module() cleanup

Undo bizarre declaration in load_module().
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f71d20e9
...@@ -1458,12 +1458,27 @@ static struct module *load_module(void __user *umod, ...@@ -1458,12 +1458,27 @@ static struct module *load_module(void __user *umod,
Elf_Ehdr *hdr; Elf_Ehdr *hdr;
Elf_Shdr *sechdrs; Elf_Shdr *sechdrs;
char *secstrings, *args, *modmagic, *strtab = NULL; char *secstrings, *args, *modmagic, *strtab = NULL;
unsigned int i, symindex = 0, strindex = 0, setupindex, exindex, unsigned int i;
exportindex, modindex, obsparmindex, infoindex, gplindex, unsigned int symindex = 0;
crcindex, gplcrcindex, versindex, pcpuindex, gplfutureindex, unsigned int strindex = 0;
gplfuturecrcindex, unwindex = 0; unsigned int setupindex;
unsigned int unusedindex, unusedcrcindex, unusedgplindex, unsigned int exindex;
unusedgplcrcindex; unsigned int exportindex;
unsigned int modindex;
unsigned int obsparmindex;
unsigned int infoindex;
unsigned int gplindex;
unsigned int crcindex;
unsigned int gplcrcindex;
unsigned int versindex;
unsigned int pcpuindex;
unsigned int gplfutureindex;
unsigned int gplfuturecrcindex;
unsigned int unwindex = 0;
unsigned int unusedindex;
unsigned int unusedcrcindex;
unsigned int unusedgplindex;
unsigned int unusedgplcrcindex;
struct module *mod; struct module *mod;
long err = 0; long err = 0;
void *percpu = NULL, *ptr = NULL; /* Stops spurious gcc warning */ void *percpu = NULL, *ptr = NULL; /* Stops spurious gcc warning */
......
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