Ifdefing 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.
Suggested-by: Jan Beulich <[email protected]> Signed-off-by: Oleksii Kurochko <[email protected]> --- Changes in V2: - ifdef inclusion of asm/grant_table.h in xen/grant_table.h to avoid generation of empty headers for PPC and RISC-V archs. - update commit message - add Suggested-by: Jan Beulich <[email protected]> - Remove provided before asm-generic/grant_table.h header. --- xen/include/xen/grant_table.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index 85fe6b7b5e..50edfecfb6 100644 --- a/xen/include/xen/grant_table.h +++ b/xen/include/xen/grant_table.h @@ -26,7 +26,10 @@ #include <xen/mm-frame.h> #include <xen/rwlock.h> #include <public/grant_table.h> + +#ifdef CONFIG_GRANT_TABLE #include <asm/grant_table.h> +#endif struct grant_table; -- 2.41.0
