[PATCH] gnttab: complete compat [gs]et-version logic

Jan Beulich posted 1 patch 1 month, 2 weeks ago
Failed in applying to current master (apply log)
[PATCH] gnttab: complete compat [gs]et-version logic
Posted by Jan Beulich 1 month, 2 weeks ago
While the CHECK_* macro invocations exist for these, the just-in-case
CASE() invocations were missing for them.

Fixes: a98dc13703e0 ("Introduce a grant_entry_v2 structure")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
Alternatively, as I'm under the impression Andrew would prefer it, we
could decide to drop all of these fallback #ifndef blocks.

--- a/xen/common/compat/grant_table.c
+++ b/xen/common/compat/grant_table.c
@@ -118,10 +118,18 @@ int (compat_grant_table_op)(
     CASE(dump_table);
 #endif
 
+#ifndef CHECK_gnttab_set_version
+    CASE(set_version);
+#endif
+
 #ifndef CHECK_gnttab_get_status_frames
     CASE(get_status_frames);
 #endif
 
+#ifndef CHECK_gnttab_get_version
+    CASE(get_version);
+#endif
+
 #ifndef CHECK_gnttab_swap_grant_ref
     CASE(swap_grant_ref);
 #endif