summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shi <alexs@kernel.org>2026-02-05 16:39:59 +0300
committerAndreas Larsson <andreas@gaisler.com>2026-02-06 17:16:22 +0300
commitd844152d85cfcc7d2ef9430a25882604c12da279 (patch)
tree6707756e2390a450acd3b740b6f58f9c938fbb1a
parent9796ba918e58f170df5cff337be316a2f7cf1e58 (diff)
downloadlinux-d844152d85cfcc7d2ef9430a25882604c12da279.tar.xz
sparc: remove unused variable strtab
The commit 1b35a57b1c178 ("sparc32: Kill off software 32-bit multiply/divide routines") removed the last usage of strtab in funtion module_frob_arch_sections Therefore, it can be removed now. Reported-by: kernel test robot <lkp@intel.com> Cc: sparclinux@vger.kernel.org Cc: David S. Miller <davem@davemloft.net> Cc: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Alex Shi <alexs@kernel.org> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
-rw-r--r--arch/sparc/kernel/module.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sparc/kernel/module.c b/arch/sparc/kernel/module.c
index 49740450a685..2a8770369beb 100644
--- a/arch/sparc/kernel/module.c
+++ b/arch/sparc/kernel/module.c
@@ -29,7 +29,6 @@ int module_frob_arch_sections(Elf_Ehdr *hdr,
{
unsigned int symidx;
Elf_Sym *sym;
- char *strtab;
int i;
for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) {
@@ -39,7 +38,6 @@ int module_frob_arch_sections(Elf_Ehdr *hdr,
}
}
sym = (Elf_Sym *)sechdrs[symidx].sh_addr;
- strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr;
for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) {
if (sym[i].st_shndx == SHN_UNDEF) {