Skip to contentSkip to conversation

Arm/p2m: fix build after ea22bcd030da and 2aa977eb6baa

PATCH In review Jan Beulich 3 participants 4 messages Jan 24, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Arm/p2m: fix build after ea22bcd030da and 2aa977eb6baa

Each of these commits introduced a function prototype referencing a structure which hadn't at least been forward declared. Add such declarations.

xen/include/xen/mem_access.h +2 -0
@@ -58,6 +58,7 @@ typedef enum {
     /* NOTE: Assumed to be only 4 bits right now on x86. */
 } p2m_access_t;
 
+struct p2m_domain;
 bool xenmem_access_to_p2m_access(const struct p2m_domain *p2m,
                                  xenmem_access_t xaccess,
                                  p2m_access_t *paccess);
@@ -79,6 +80,7 @@ long p2m_set_mem_access_multi(struct dom
 int p2m_set_suppress_ve(struct domain *d, gfn_t gfn, bool suppress_ve,
                         unsigned int altp2m_idx);
 
+struct xen_hvm_altp2m_suppress_ve_multi;
 int p2m_set_suppress_ve_multi(struct domain *d,
                               struct xen_hvm_altp2m_suppress_ve_multi *suppress_ve);
 

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

Each of these commits introduced a function prototype referencing a structure which hadn't at least been forward declared. Add such declarations.

I wouldn't object if you decided to check these in immediately, given that it's a simple fix which un-breaks the build.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 8 lines · George Dunlap
Quoted 5 lines · Jan Beulich

Each of these commits introduced a function prototype referencing a structure which hadn't at least been forward declared. Add such declarations.

Thanks.

Quoted 2 lines

I wouldn't object if you decided to check these in immediately, given that it's a simple fix which un-breaks the build.

Done.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 9 lines · Jan Beulich
Quoted 7 lines · George Dunlap
Quoted 5 lines · Jan Beulich

Each of these commits introduced a function prototype referencing a structure which hadn't at least been forward declared. Add such declarations.

Quoted 8 lines
Quoted 1 line

Thanks.

Quoted 2 lines

I wouldn't object if you decided to check these in immediately, given that it's a simple fix which un-breaks the build.

Done.

Thanks for the fast fix. I sent a follow up patch that relocates the VE functions to x86. These really should not have been added to the common header to begin with.

Tamas

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel