summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0150-x86-relocs-Remove-an-unused-variable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0150-x86-relocs-Remove-an-unused-variable.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0150-x86-relocs-Remove-an-unused-variable.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0150-x86-relocs-Remove-an-unused-variable.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0150-x86-relocs-Remove-an-unused-variable.patch
new file mode 100644
index 00000000..5b063811
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0150-x86-relocs-Remove-an-unused-variable.patch
@@ -0,0 +1,41 @@
1From 174b97406f578b117e9403dde42ac98f80919a0b Mon Sep 17 00:00:00 2001
2From: Kusanagi Kouichi <slash@ac.auone-net.jp>
3Date: Sun, 1 Apr 2012 17:29:32 +0900
4Subject: [PATCH 150/165] x86, relocs: Remove an unused variable
5
6commit 7c77cda0fe742ed07622827ce80963bbeebd1e3f upstream.
7
8sh_symtab is set but not used.
9
10[ hpa: putting this in urgent because of the sheer harmlessness of the patch:
11 it quiets a build warning but does not change any generated code. ]
12
13Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
14Link: http://lkml.kernel.org/r/20120401082932.D5E066FC03D@msa105.auone-net.jp
15Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
16Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
17---
18 arch/x86/boot/compressed/relocs.c | 2 --
19 1 files changed, 0 insertions(+), 2 deletions(-)
20
21diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c
22index 89bbf4e..e77f4e4 100644
23--- a/arch/x86/boot/compressed/relocs.c
24+++ b/arch/x86/boot/compressed/relocs.c
25@@ -402,13 +402,11 @@ static void print_absolute_symbols(void)
26 for (i = 0; i < ehdr.e_shnum; i++) {
27 struct section *sec = &secs[i];
28 char *sym_strtab;
29- Elf32_Sym *sh_symtab;
30 int j;
31
32 if (sec->shdr.sh_type != SHT_SYMTAB) {
33 continue;
34 }
35- sh_symtab = sec->symtab;
36 sym_strtab = sec->link->strtab;
37 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
38 Elf32_Sym *sym;
39--
401.7.7.6
41