]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
module-add-printk-formats-to-add-module-build-id-to-stacktraces-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 2 Jun 2021 03:53:29 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 Jun 2021 08:17:07 +0000 (18:17 +1000)
make kallsyms_lookup_buildid() static

warning: no previous prototype for 'kallsyms_lookup_buildid' [-Wmissing-prototypes]

Cc: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
kernel/kallsyms.c

index 1355b0404fcd076c572d83b49ab7cdf878178aa9..4067564ec59fdd903d286eb44e5dcbec2f451c3d 100644 (file)
@@ -311,9 +311,10 @@ int kallsyms_lookup_size_offset(unsigned long addr, unsigned long *symbolsize,
               !!__bpf_address_lookup(addr, symbolsize, offset, namebuf);
 }
 
-const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
-                                   unsigned long *offset, char **modname,
-                                   const unsigned char **modbuildid, char *namebuf)
+static const char *kallsyms_lookup_buildid(unsigned long addr,
+                       unsigned long *symbolsize,
+                       unsigned long *offset, char **modname,
+                       const unsigned char **modbuildid, char *namebuf)
 {
        const char *ret;