]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: entry: Refactor and modernise annotation for ret_to_user
authorMark Brown <broonie@kernel.org>
Fri, 1 May 2020 11:54:28 +0000 (12:54 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 May 2020 11:46:03 +0000 (12:46 +0100)
commit767f9b161144e15cb82753573d4b872065c5a18c
treef1861beeeb46146cae45eba7220fd437d1e7fa62
parentcec04b7bb9a7e136d06965b72cf7be33c92e1d08
arm64: entry: Refactor and modernise annotation for ret_to_user

As part of an effort to clarify and clean up the assembler annotations
new macros have been introduced which annotate the start and end of blocks
of code in assembler files. Currently ret_to_user has an out of line slow
path work_pending placed above the main function which makes annotating the
start and end of these blocks of code awkward.

Since work_pending is only referenced from within ret_to_user try to make
things a bit clearer by moving it after the current ret_to_user and then
marking both ret_to_user and work_pending as part of a single ret_to_user
code block.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20200501115430.37315-2-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/entry.S