xen: fix build when !CONFIG_GRANT_TABLE
authorConnor Davis <connojdavis@gmail.com>
Mon, 17 May 2021 13:43:19 +0000 (15:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 17 May 2021 13:43:19 +0000 (15:43 +0200)
commit71a25d03b70b399d666d05a3d0046d821248c80e
tree2e2fa36368b506095a737f7fe5f1f1015b8f0358
parentd1f6296053f464c9da6f6fa5f1ece864130718ce
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@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/grant_table.h