OSDN Git Service

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)
commit57a489786de9ec37d6e25ef1305dc337047f0236
treeb2b2698e7d7dd48a727be902dc74f4446390a388
parent6bf4ca7fbc85d80446ac01c0d1d77db4d91a6d84
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]