]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sh: dwarf: Make dwarf_lookup_fde() static
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 1 Mar 2024 21:02:33 +0000 (22:02 +0100)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 2 May 2024 10:01:25 +0000 (12:01 +0200)
arch/sh/kernel/dwarf.c:347:19: warning: no previous prototype for 'dwarf_lookup_fde' [-Wmissing-prototypes]

There are no users outside this file, so make it static.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/55e8261a354e8ec4d375754e404c6c1d303af715.1709326528.git.geert+renesas@glider.be
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/kernel/dwarf.c

index bf8682e718303051bdd43d3f363e434fc39e2f8c..45c8ae20d10957db4b35c84f27d9ecc4a216f27a 100644 (file)
@@ -344,7 +344,7 @@ out:
  *     dwarf_lookup_fde - locate the FDE that covers pc
  *     @pc: the program counter
  */
-struct dwarf_fde *dwarf_lookup_fde(unsigned long pc)
+static struct dwarf_fde *dwarf_lookup_fde(unsigned long pc)
 {
        struct rb_node **rb_node = &fde_root.rb_node;
        struct dwarf_fde *fde = NULL;