]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: include linux/ftrace.h in asm-prototypes.h
authorJames Cowgill <jcowgill@debian.org>
Thu, 6 Sep 2018 21:57:56 +0000 (22:57 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 24 Sep 2018 20:12:27 +0000 (13:12 -0700)
commita6fa242d38973be63bed9799b332f66a5b87a3a3
treeb2b2698e7d7dd48a727be902dc74f4446390a388
parentcf80c873e685c0440e4b1c448412449c7a97917a
RISC-V: include linux/ftrace.h in asm-prototypes.h

Building a riscv kernel with CONFIG_FUNCTION_TRACER and
CONFIG_MODVERSIONS enabled results in these two warnings:

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

When exporting symbols from an assembly file, the MODVERSIONS code
requires their prototypes to be defined in asm-prototypes.h (see
scripts/Makefile.build). Since both of these symbols have prototypes
defined in linux/ftrace.h, include this header from RISC-V's
asm-prototypes.h.

Reported-by: Karsten Merker <merker@debian.org>
Signed-off-by: James Cowgill <jcowgill@debian.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/asm-prototypes.h [new file with mode: 0644]