Skip to content

Commit e021132

Browse files
jcowgillralfbaechle
authored andcommitted
MIPS: Fix modversioning of _mcount symbol
In commit 827456e ("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: 827456e ("MIPS: Export _mcount alongside its definition") Signed-off-by: James Cowgill <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/15952/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 337b775 commit e021132

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/include/asm/asm-prototypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
#include <asm/fpu.h>
44
#include <asm-generic/asm-prototypes.h>
55
#include <asm/uaccess.h>
6+
#include <asm/ftrace.h>

0 commit comments

Comments
 (0)