]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Fix modversioning of _mcount symbol
authorJames Cowgill <James.Cowgill@imgtec.com>
Tue, 11 Apr 2017 12:51:08 +0000 (13:51 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 12 Apr 2017 13:13:53 +0000 (15:13 +0200)
commite0211327f068901ce654ba78951c35bc69fdc1de
treeb789145c66e8d89131cd328faf8baa2f61f17468
parent337b775b6cf5d093295961c1aa6ac76693b5f847
MIPS: Fix modversioning of _mcount symbol

In commit 827456e71036 ("MIPS: Export _mcount alongside its definition")
the EXPORT_SYMBOL macro exporting _mcount was moved from C code into
assembly. Unlike C, exported assembly symbols need to have a function
prototype in asm/asm-prototypes.h for modversions to work properly.
Without this, modpost prints out this warning:

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

Fix by including asm/ftrace.h (where _mcount is declared) in
asm/asm-prototypes.h.

Fixes: 827456e71036 ("MIPS: Export _mcount alongside its definition")
Signed-off-by: James Cowgill <James.Cowgill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15952/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/asm-prototypes.h