From: Andrew Morton Date: Mon, 16 Jul 2007 06:41:03 +0000 (-0700) Subject: binfmt_elf warning fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d3b573ad9af85b6df104044f6fff05f04349db2;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git binfmt_elf warning fix fs/binfmt_elf.c: In function 'load_elf_binary': fs/binfmt_elf.c:1002: warning: 'interp_map_addr' may be used uninitialized in this function The compiler (gcc-4.1.0) is correct, but it failed to notice that we didn't use the resulting value. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 5cfa735639a..a27e42bf340 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -999,7 +999,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) elf_entry = load_aout_interp(&loc->interp_ex, interpreter); } else { - unsigned long interp_map_addr; /* unused */ + unsigned long uninitialized_var(interp_map_addr); elf_entry = load_elf_interp(&loc->interp_elf_ex, interpreter,