xen/arm: gnttab: use static inlines for gnttab_{release_}host_mapping*
authorMichal Orzel <michal.orzel@arm.com>
Fri, 6 May 2022 09:42:24 +0000 (11:42 +0200)
committerJulien Grall <jgrall@amazon.com>
Thu, 12 May 2022 17:33:27 +0000 (18:33 +0100)
commit207abdb38ee987e99385263e3e56b6c500d74cbc
treed131d385b49521c7269ef61eb932f03c84ce00c3
parent407b13a71e324aba76b11e5f66f59ce4a304a088
xen/arm: gnttab: use static inlines for gnttab_{release_}host_mapping*

Function unmap_common_complete (common/grant_table.c) defines and sets
a variable ld that is later on passed to a macro:
gnttab_host_mapping_get_page_type().
On Arm this macro does not make use of any arguments causing a compiler
to warn about unused-but-set variable (when -Wunused-but-set-variable
is enabled). Fix it by converting this macro to a static inline
helper and using the boolean return type.

While there, also convert macro gnttab_release_host_mappings.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/include/asm/grant_table.h