Skip to contentSkip to conversation

sparc: add _mcount() prototype

PATCH In review Andrew Morton 3 participants 4 messages May 23 – Jun 12 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: add _mcount() prototype

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]>

---

 arch/sparc/include/asm/asm-prototypes.h |    1 +
 1 file changed, 1 insertion(+)
arch/sparc/include/asm/asm-prototypes.h renamed from arch/sparc/include/asm/asm-prototypes.h~sparc-add-_mcount-prototype +1 -0
@@ -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);

_

#1 lore raw

Hi Andrew,

Quoted 8 lines · Andrew Morton

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>?

I think that must be a regression as I haven't seen this before. I should pull and build a current kernel, my last build was around v7.1-rc1.

Quoted 4 lines

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?

Thanks for catching this. I will have a look here as well.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#2 lore raw
Quoted 7 lines · On Sat, 23 May 2026 09:49:13 +0200 John Paul Adrian Glaubitz…

Hi Andrew,

Quoted 4 lines · Andrew Morton

From: Andrew Morton <[email protected]>
Subject: sparc: add _mcount() prototype
Date: Fri May 22 09:20:26 PM PDT 2026

Quoted 7 lines
Quoted 4 lines

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>?

I think that must be a regression as I haven't seen this before. I should pull and build a current kernel, my last build was around v7.1-rc1.

OK. I tried bare 7.1-rc4, the warning is there. gcc-15.2.0.

maintainer Reviewed-by Tested-by on v1 1/1
#3 lore raw
In reply to Andrew Morton
Quoted 32 lines · Andrew Morton

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]>

---

 arch/sparc/include/asm/asm-prototypes.h |    1 +
 1 file changed, 1 insertion(+)
arch/sparc/include/asm/asm-prototypes.h renamed from arch/sparc/include/asm/asm-prototypes.h~sparc-add-_mcount-prototype +1 -0
@@ -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);
Quoted 1 line

_

Picking this up to my for-next, minus the BTW comment which is a separate discussion.

Thanks,
Andreas