[PATCH] load_module() cleanup

Undo bizarre declaration in load_module().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Andrew Morton 2006-06-28 04:26:46 -07:00 committed by Linus Torvalds
parent f71d20e961
commit 84860f9979
1 changed files with 21 additions and 6 deletions

View File

@ -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 */