* Patch "MIPS: elf2ecoff: Fix warning due to dead code." has been added to the 3.18-stable tree
@ 2017-05-04 22:58 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-04 22:58 UTC (permalink / raw)
To: ralf, arnd, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
MIPS: elf2ecoff: Fix warning due to dead code.
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mips-elf2ecoff-fix-warning-due-to-dead-code.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 2d76e9633b572ae5a64150b638eed77f4afc12db Mon Sep 17 00:00:00 2001
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 4 Feb 2015 13:04:03 +0100
Subject: MIPS: elf2ecoff: Fix warning due to dead code.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Ralf Baechle <ralf@linux-mips.org>
commit 2d76e9633b572ae5a64150b638eed77f4afc12db upstream.
HOSTCC arch/mips/boot/elf2ecoff
arch/mips/boot/elf2ecoff.c: In function ‘main’:
arch/mips/boot/elf2ecoff.c:271:8: warning: variable ‘shstrtab’ set but not used [-Wunused-but-set-variable]
char *shstrtab;
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/mips/boot/elf2ecoff.c | 4 ----
1 file changed, 4 deletions(-)
--- a/arch/mips/boot/elf2ecoff.c
+++ b/arch/mips/boot/elf2ecoff.c
@@ -268,7 +268,6 @@ int main(int argc, char *argv[])
Elf32_Ehdr ex;
Elf32_Phdr *ph;
Elf32_Shdr *sh;
- char *shstrtab;
int i, pad;
struct sect text, data, bss;
struct filehdr efh;
@@ -336,9 +335,6 @@ int main(int argc, char *argv[])
"sh");
if (must_convert_endian)
convert_elf_shdrs(sh, ex.e_shnum);
- /* Read in the section string table. */
- shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset,
- sh[ex.e_shstrndx].sh_size, "shstrtab");
/* Figure out if we can cram the program header into an ECOFF
header... Basically, we can't handle anything but loadable
Patches currently in stable-queue which might be from ralf@linux-mips.org are
queue-3.18/mips-kgdb-use-kernel-context-for-sleeping-threads.patch
queue-3.18/mips-elf2ecoff-ignore-pt_mips_abiflags-program-headers.patch
queue-3.18/mips-fix-crash-registers-on-non-crashing-cpus.patch
queue-3.18/mips-elf2ecoff-fix-warning-due-to-dead-code.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-04 22:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04 22:58 Patch "MIPS: elf2ecoff: Fix warning due to dead code." has been added to the 3.18-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.