powerpc/module: Remove arch specific module bug stuff
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 3 May 2024 00:23:17 +0000 (01:23 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 3 May 2024 10:46:51 +0000 (20:46 +1000)
The last function to reference module_bug_list went in 2008's
  commit b9754568ef17 ("powerpc: Remove dead module_find_bug code")
but I don't think that was called since 2006's
  commit 73c9ceab40b1 ("[POWERPC] Generic BUG for powerpc")

Now that the list has gone, I think we can also clean up the bug
entries in mod_arch_specific.

Lightly boot tested.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240503002317.183500-1-linux@treblig.org
arch/powerpc/include/asm/module.h
arch/powerpc/kernel/module.c

index a8e2e8339fb7f4d830c64da59ba7858c148af7e8..300c777cc307591eefabc96ae7224e8f143e3919 100644 (file)
@@ -48,11 +48,6 @@ struct mod_arch_specific {
        unsigned long tramp;
        unsigned long tramp_regs;
 #endif
-
-       /* List of BUG addresses, source line numbers and filenames */
-       struct list_head bug_list;
-       struct bug_entry *bug_table;
-       unsigned int num_bugs;
 };
 
 /*
index f6d6ae0a1692396a6b65458e9731cbb61ea443a6..8989e069e3aae862ea1596608194719460bc642a 100644 (file)
@@ -17,8 +17,6 @@
 #include <asm/setup.h>
 #include <asm/sections.h>
 
-static LIST_HEAD(module_bug_list);
-
 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
                                    const Elf_Shdr *sechdrs,
                                    const char *name)