summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2020-09-27 09:16:40 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2020-12-04 01:01:18 +1100
commite113f8ef1c7e5fd79b440e5565c8552b36122bfa (patch)
treedf4342aebbf93c1da0fab7d57bc888d91623d366 /arch
parent5cda7c75493fd17a010d7399e39fda6619f69043 (diff)
downloadlinux-e113f8ef1c7e5fd79b440e5565c8552b36122bfa.tar.bz2
powerpc/vdso: Remove unused text member in struct lib32/64_elfinfo
The text member in struct lib32_elfinfo and struct lib64_elfinfo is not used, remove it. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/f53dcc9bb1946a7854d15b34d03d3d2e2003848c.1601197618.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/vdso.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c
index ea0ce3a9fb4a..9851039b0786 100644
--- a/arch/powerpc/kernel/vdso.c
+++ b/arch/powerpc/kernel/vdso.c
@@ -73,7 +73,6 @@ struct lib32_elfinfo
Elf32_Sym *dynsym; /* ptr to .dynsym section */
unsigned long dynsymsize; /* size of .dynsym section */
char *dynstr; /* ptr to .dynstr section */
- unsigned long text; /* offset of .text section in .so */
};
struct lib64_elfinfo
@@ -82,7 +81,6 @@ struct lib64_elfinfo
Elf64_Sym *dynsym;
unsigned long dynsymsize;
char *dynstr;
- unsigned long text;
};
static int vdso_mremap(const struct vm_special_mapping *sm, struct vm_area_struct *new_vma,
@@ -270,8 +268,6 @@ static void * __init find_section64(Elf64_Ehdr *ehdr, const char *secname,
static __init int vdso_do_find_sections(struct lib32_elfinfo *v32,
struct lib64_elfinfo *v64)
{
- void *sect;
-
/*
* Locate symbol tables & text section
*/
@@ -283,12 +279,6 @@ static __init int vdso_do_find_sections(struct lib32_elfinfo *v32,
printk(KERN_ERR "vDSO32: required symbol section not found\n");
return -1;
}
- sect = find_section32(v32->hdr, ".text", NULL);
- if (sect == NULL) {
- printk(KERN_ERR "vDSO32: the .text section was not found\n");
- return -1;
- }
- v32->text = sect - vdso32_kbase;
#endif
#ifdef CONFIG_PPC64
@@ -298,12 +288,6 @@ static __init int vdso_do_find_sections(struct lib32_elfinfo *v32,
printk(KERN_ERR "vDSO64: required symbol section not found\n");
return -1;
}
- sect = find_section64(v64->hdr, ".text", NULL);
- if (sect == NULL) {
- printk(KERN_ERR "vDSO64: the .text section was not found\n");
- return -1;
- }
- v64->text = sect - vdso64_kbase;
#endif /* CONFIG_PPC64 */
return 0;