From patchwork Fri May 5 19:47:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 98709 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp292996qge; Fri, 5 May 2017 12:49:02 -0700 (PDT) X-Received: by 10.99.189.2 with SMTP id a2mr5448501pgf.85.1494013742796; Fri, 05 May 2017 12:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494013742; cv=none; d=google.com; s=arc-20160816; b=N3z4tYV9tJthjy8S6UvpAt1bbI5ycNFA3o5gV8h4KV4KpyCnsIanCrIQs+EH6DmE7Z rGFDpxoyI1Qzh0Op38Edimh4VeBSEUkzO6eL75ghN/6ZEHjMweg91sJ9jSaTBa8G00sv 4Pp3TWce9tobsmAKoBZHbi4DYpOTmLEv1BH+Fk5yCOArHzD50SB3sbxlzQ82unGzRVgO 2lyA4EjzLC/W6vDmtuHANVa26bSZEqSAbEwT3gmNs10mULp0D5eFyeP1DJT8gGY+xPC+ Va8Bq04AgEkBtQnZQzSlpsb4SRmyaSMHbgu7wRguScrcB7fVhj8c8fD/eU+gvkyGZ82S tWQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=y54qUlmHpPunJOB34L4TT3uYxkI1n3JXwC+vasWQhpc=; b=Zu4BRrIIR0TTt+d7TpfD0wLBZ1qNy5agjnXykkbDgEbjvuDus3m/bSHRzGJcKs0q50 WxaMXO9dEyOV+IaCDc8/nnpxhEc+/5ZcUbu+w+YT+OBYfV7D76sJcqkxlQgRLE1y93hZ hwl6vJ9LE6+XKz1RSly1AIGkMM+wt/DIQY4wHDTXcHq9FrTQUnej/vFOBZiGdJgZ3Vc1 iuA7+8jWChFmBYD2YT0af3CXe3M8fNtjMlgk8tkf9lX8Gf5qbuUknNpqGjoimprYOc72 qfyjZD41uL4IK7yLBnoL3Y/RPcw/1dZcoIL4r/pozYgU2/qJ/cpke8xCBMpSpi/wJOXH k4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si2698005pgk.367.2017.05.05.12.49.02; Fri, 05 May 2017 12:49:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755871AbdEETtB (ORCPT + 6 others); Fri, 5 May 2017 15:49:01 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:59200 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755749AbdEETsq (ORCPT ); Fri, 5 May 2017 15:48:46 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MSDwg-1dVRuf0sR8-00TDJX; Fri, 05 May 2017 21:48:39 +0200 From: Arnd Bergmann To: Ben Hutchings Cc: stable@vger.kernel.org, Ralf Baechle , Arnd Bergmann Subject: [PATCH 3.16-stable 87/87] MIPS: elf2ecoff: Fix warning due to dead code. Date: Fri, 5 May 2017 21:47:45 +0200 Message-Id: <20170505194745.3627137-88-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170505194745.3627137-1-arnd@arndb.de> References: <20170505194745.3627137-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K0:yPQw2wy38POlvKrlcilzcgzzTlgzpKyeVNsRZn5YpkWqaVrom+0 otTvklaHCz39uky+ZBNQtd11W3SKnGTar6oW/tyJfQYKvGiY+n6JWQ4RjsO06iFTZOgnmN7 HCCA3oMyCeZCgXK8eiteC3KZ3Zfbgg+1SykEsjvbR0TKvAlkNsawUmkDHy3J6H9LhTWAwub gk2/t+cL61nVmlisPjY7A== X-UI-Out-Filterresults: notjunk:1; V01:K0:AS2MScfaAds=:UzRSJrfzzo67l49a/ICbQa mNFt6fmOb/HBezzg142l1n/5AmGeejBcsrU9fDpR2yM4zM+QxJcUItQU8JJcslvdfc+s9eHsq RhhauTdEwu3CRVptI656I/KUogeV9fzEv6ntmTS3q8EV7tN+7IFYdXdwBMPKC9B4D+P6eFp3u RmhtR7B/TeEiT97T70busYKQW1nwyDD0VoJ2LfRRDIxfwCA0ffUSQKG0AwcYGrCm274hotXmh T5cIO4wZYWN4N2fjtCfUGiOeM5SqjiHkAUR5chLV8Aom8uwNLJtyJULqlXZIv0dT3o21i8Gq4 dRiwQPcOx9GLUmqvoXrZ8DX/+p7Bt7PQQxgA2/X3R9YrRt93yrPMZuZCbiUXuM+8Iltn9/Jev mjLCkOfZ+fpgTIqy7L4VMomIWtvSWgOTmXeH38an82dXa49Spd3cckzOyLtmgRHN7DmY7xN+b x2tcCLmz0wXDFQiOdOFrlgp+Nv+7pdlXWfWzVtUDfFBSB4pwBXqYXjkjDga0ocaiH1bR/m8dV FgrLSE1TNA4630lCjiv68N+S8gMcNsRm/19oOZiHvVjlMqnPON+FwMLxmXe+uFOrQV1Nnqan5 UU1cCwtqymaBroKxW8/4AUSE0mxhSGbl4sykhNInVEFgstV9+wQAUcxPc0DLt5fMjw0bf0gDQ jpzZ/logSabTsHgB4NPOtCz54BciFw0r3W9CJ20/zTbYngI2yz6aQOdHWQgpQIe3TNA+ztEHK JJwT48VkBjdy015I Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ralf Baechle Commit 8cf6adea726b0e4abcc982b6e7e29915a620c90c 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 Signed-off-by: Arnd Bergmann --- arch/mips/boot/elf2ecoff.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.9.0 diff --git a/arch/mips/boot/elf2ecoff.c b/arch/mips/boot/elf2ecoff.c index 8585078ae50e..bef06453edc0 100644 --- a/arch/mips/boot/elf2ecoff.c +++ b/arch/mips/boot/elf2ecoff.c @@ -267,7 +267,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; @@ -335,9 +334,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