]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/grant: switch included header to make declarations visible
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Tue, 21 Nov 2023 09:07:51 +0000 (10:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Nov 2023 09:07:51 +0000 (10:07 +0100)
The declarations for {create,replace}_grant_p2m_mapping are
not visible when these functions are defined, therefore the right
header needs to be included to allow them to be visible.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/grant_table.c
xen/arch/x86/include/asm/hvm/grant_table.h

index 30d51d54a9491f656f5affec205e57794ab3d7f9..afe449d8882c0860c1ee185a37d4ac0043e28385 100644 (file)
@@ -9,8 +9,7 @@
 
 #include <xen/types.h>
 
-#include <public/grant_table.h>
-
+#include <asm/hvm/grant_table.h>
 #include <asm/p2m.h>
 
 int create_grant_p2m_mapping(uint64_t addr, mfn_t frame,
index 33c1da1a25f3c023f8329b19738b6acaff48c570..01e23f79b8cf59feddb7e061234628eaf346d469 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __X86_HVM_GRANT_TABLE_H__
 #define __X86_HVM_GRANT_TABLE_H__
 
+#include <xen/mm-frame.h>
+
 #ifdef CONFIG_HVM
 
 int create_grant_p2m_mapping(uint64_t addr, mfn_t frame,