]> xenbits.xensource.com Git - xen.git/commit
xen: ifdef inclusion of <asm/grant_table.h> in <xen/grant_table.h>
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Wed, 20 Dec 2023 14:08:29 +0000 (16:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Jan 2024 09:15:44 +0000 (10:15 +0100)
commit589d8cf146290bdc7f4347bced10c20bd14791f6
tree1f0c562e26c23172aef7e9f7b7f1b94ecf2f5bbc
parent42b814b7ff0af0022cb93c912120b59b08173158
xen: ifdef inclusion of <asm/grant_table.h> in <xen/grant_table.h>

Ifdef-ing inclusion of <asm/grant_table.h> allows to avoid
generation of empty <asm/grant_table.h> for cases when
CONFIG_GRANT_TABLE is not enabled.

The following changes were done for Arm:
<asm/grant_table.h> should be included directly because it contains
gnttab_dom0_frames() macros which is unique for Arm and is used in
arch/arm/domain_build.c.
<asm/grant_table.h> is #ifdef-ed with CONFIG_GRANT_TABLE in
<xen/grant_table.h> so in case of !CONFIG_GRANT_TABLE gnttab_dom0_frames
won't be available for use in arch/arm/domain_build.c.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Acked-by: Shawn Anastasio <sanastasio@raptorengineering.com>
xen/arch/arm/domain_build.c
xen/arch/ppc/include/asm/grant_table.h [deleted file]
xen/include/xen/grant_table.h