Re: [patch 1/1] sparc: add _mcount() prototype
Andreas Larsson <[email protected]> Fri, 12 Jun 2026 11:21:24 +0200
| Newsgroups | org.kernel.vger.sparclinux |
|---|---|
| Message-ID | <[email protected]> |
On 2026-05-23 06:25, Andrew Morton wrote: > From: Andrew Morton <[email protected]> > Subject: sparc: add _mcount() prototype > Date: Fri May 22 09:20:26 PM PDT 2026 > > 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. > > BTW, altering arch/sparc/include/asm/asm-prototypes.h then running `make' > doesn't compile anything, so there's a missing dependency somewhere? > > Cc: "David S. Miller" <[email protected]> > Cc: Andreas Larsson <[email protected]> > Signed-off-by: Andrew Morton <[email protected]> > --- > > arch/sparc/include/asm/asm-prototypes.h | 1 + > 1 file changed, 1 insertion(+) > > --- a/arch/sparc/include/asm/asm-prototypes.h~sparc-add-_mcount-prototype > +++ a/arch/sparc/include/asm/asm-prototypes.h > @@ -25,6 +25,7 @@ void *memcpy(void *dest, const void *src > 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); > _ Reviewed-by: Andreas Larsson <[email protected]> Tested-by: Andreas Larsson <[email protected]> Picking this up to my for-next, minus the BTW comment which is a separate discussion. Thanks, Andreas