]> xenbits.xensource.com Git - xen.git/commit
arm64/traps: fix MISRA C 2012 Rule 8.4 violations
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 28 Jun 2022 15:07:38 +0000 (17:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 28 Jun 2022 15:07:38 +0000 (17:07 +0200)
commit2c62623c59b5f08e31264b8055a03f0f9e164910
tree1bc3256c746b8c2a25d15f89873930324ded62dc
parent1fd3698175d2de5c0b91c28902cfe0dac6c332a9
arm64/traps: fix MISRA C 2012 Rule 8.4 violations

Add a function prototype for do_bad_mode() in <asm/arm64/traps.h> and include
header <asm/traps.h> in traps.c, so that the declarations of the functions
do_bad_mode() and finalize_instr_emulation(), which have external linkage,
are visible before the function definitions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/arm64/traps.c
xen/arch/arm/include/asm/arm64/traps.h