]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sparc: add _mcount() prototype
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 23 May 2026 04:20:26 +0000 (21:20 -0700)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 12 Jun 2026 11:55:59 +0000 (13:55 +0200)
sparc64 defconfig told me

WARNING: modpost: EXPORT symbol "_mcount" [vmlinux] version generation failed, symbol will not be versioned.
Is "_mcount" prototyped in <asm/asm-prototypes.h>?

so I added it.

Cc: David S. Miller <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/include/asm/asm-prototypes.h

index bbd1a8afaabf8beaa1953da4e550a819b592e603..270c51017212a1b3a7f470450d3b10065569d397 100644 (file)
@@ -25,6 +25,7 @@ void *memcpy(void *dest, const void *src, size_t n);
 void *memset(void *s, int c, size_t n);
 typedef int TItype __attribute__((mode(TI)));
 TItype __multi3(TItype a, TItype b);
+void _mcount(void);
 
 s64 __ashldi3(s64, int);
 s64 __lshrdi3(s64, int);