xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Mar 2019 18:23:11 +0000 (18:23 +0000)
committerJulien Grall <julien.grall@arm.com>
Thu, 3 Oct 2019 10:46:42 +0000 (11:46 +0100)
commit0b1835c9dee3f6e14d075c720d9bea51cbf025c4
tree654fabcc26ee9bf4860dcbd310fbe186949a72c5
parent32a813fe7d531cdb81221930e150edfba7cbbf52
xen/arm: mm: Mark check_memory_layout_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/mm.c