powerpc: Add a prototype for mcount() so it can be versioned
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Feb 2017 12:55:43 +0000 (23:55 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2017 02:28:06 +0000 (13:28 +1100)
Currently we get a warning that _mcount() can't be versioned:

  WARNING: EXPORT symbol "_mcount" [vmlinux] version generation failed, symbol will not be versioned.

Add a prototype to asm-prototypes.h to fix it.

The prototype is not really correct, mcount() is not a normal function,
it has a special ABI. But for the purpose of versioning it doesn't
matter.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/asm-prototypes.h

index ba47c70712f92b619c6ba91859c39bb42ddc4bbf..f6c5264287e533bbfbc064eb14346bbb146d67c1 100644 (file)
@@ -120,4 +120,6 @@ extern s64 __ashrdi3(s64, int);
 extern int __cmpdi2(s64, s64);
 extern int __ucmpdi2(u64, u64);
 
+void _mcount(void);
+
 #endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */