arm64: ftrace: Correct annotation of ftrace_caller assembly
authorMark Brown <broonie@kernel.org>
Tue, 18 Feb 2020 19:58:31 +0000 (19:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 9 Mar 2020 17:35:14 +0000 (17:35 +0000)
commite434b08b442b63b431de2737a99885e07efd1b0e
tree2ecbfca3eaaea9691d1941e1659ed7dbada6b435
parente2d591d29d44af2078336c5dd7ab503c151a2607
arm64: ftrace: Correct annotation of ftrace_caller assembly

In an effort to clarify and simplify the annotation of assembly
functions new macros have been introduced. These replace ENTRY and
ENDPROC with two different annotations for normal functions and those
with unusual calling conventions.

The patchable function entry versions of ftrace_*_caller don't follow the
usual AAPCS rules, pushing things onto the stack which they don't clean up,
and therefore should be annotated as code rather than functions.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry-ftrace.S