[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] xen: fix build when !CONFIG_GRANT_TABLE



commit 71a25d03b70b399d666d05a3d0046d821248c80e
Author:     Connor Davis <connojdavis@xxxxxxxxx>
AuthorDate: Mon May 17 15:43:19 2021 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon May 17 15:43:19 2021 +0200

    xen: fix build when !CONFIG_GRANT_TABLE
    
    Move struct grant_table; in grant_table.h above
    ifdef CONFIG_GRANT_TABLE. This fixes the following:
    
    /build/xen/include/xen/grant_table.h:84:50: error: 'struct grant_table'
    declared inside parameter list will not be visible outside of this
    definition or declaration [-Werror]
       84 | static inline int mem_sharing_gref_to_gfn(struct grant_table *gt,
          |
    
    Signed-off-by: Connor Davis <connojdavis@xxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/include/xen/grant_table.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h
index 63b6dc78f4..9f8b7e66c1 100644
--- a/xen/include/xen/grant_table.h
+++ b/xen/include/xen/grant_table.h
@@ -28,9 +28,10 @@
 #include <public/grant_table.h>
 #include <asm/grant_table.h>
 
-#ifdef CONFIG_GRANT_TABLE
 struct grant_table;
 
+#ifdef CONFIG_GRANT_TABLE
+
 extern unsigned int opt_max_grant_frames;
 
 /* Create/destroy per-domain grant table context. */
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.