grant_table: include mm.h in xen/grant_table.h
authorJulien Grall <julien.grall@arm.com>
Mon, 14 Aug 2017 15:17:44 +0000 (17:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Aug 2017 15:17:44 +0000 (17:17 +0200)
While re-ordering the include alphabetically in arch/arm/domain.c, I got
a complitation error because grant_table.h is using gfn_t before been
defined:

In file included from domain.c:14:0:
xen/xen/include/xen/grant_table.h:153:29: error: unknown type name \91gfn_t\92
                             gfn_t *gfn, uint16_t *status);
                             ^

Fix it by including xen/mm.h in it.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/include/xen/grant_table.h

index 4e7789968c03508b5a71d8da425c6d08ce96a239..7913facf9f2e28d6f9b962cf0d66406960c82ea4 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef __XEN_GRANT_TABLE_H__
 #define __XEN_GRANT_TABLE_H__
 
+#include <xen/mm.h>
 #include <xen/rwlock.h>
 #include <public/grant_table.h>
 #include <asm/page.h>