Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 57a48978 authored by James Cowgill's avatar James Cowgill Committed by Palmer Dabbelt
Browse files

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: default avatarKarsten Merker <merker@debian.org>
Signed-off-by: default avatarJames Cowgill <jcowgill@debian.org>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 6bf4ca7f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_RISCV_PROTOTYPES_H

#include <linux/ftrace.h>
#include <asm-generic/asm-prototypes.h>

#endif /* _ASM_RISCV_PROTOTYPES_H */