]> xenbits.xensource.com Git - xen.git/commit
xen/arm: traps: Mark check_stack_alignment_constraints as unused
authorJulien Grall <julien.grall@arm.com>
Tue, 26 Mar 2019 21:31:16 +0000 (21:31 +0000)
committerJulien Grall <julien.grall@arm.com>
Thu, 3 Oct 2019 10:46:45 +0000 (11:46 +0100)
commite0a66a207465b76b3e45383776a0a1ac0938a56b
treeada30606fff27b71deebfdc207c15d0ee71a88a4
parent0b1835c9dee3f6e14d075c720d9bea51cbf025c4
xen/arm: traps: Mark check_stack_alignment_constraints as unused

Clang will throw an error if a function is unused unless you tell
to ignore it. This can be done using __maybe_unused.

While modifying the declaration, update it to match prototype of similar
functions (see build_assertions). This helps to understand that the sole
purpose of the function is to hold BUILD_BUG_ON().

Signed-off-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c