OSDN Git Service

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)
commit99ad503287daf78e19e64e0e51f1d60a2a592217
tree900734d285c8592b9c933e5a1eca31a5ea15c0c0
parentbe9ba9ff93cc3e44dc46da9ed25655780069411a
powerpc: Add a prototype for mcount() so it can be versioned

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