diff mbox series

gnttab: complete compat [gs]et-version logic

Message ID bd43ad1f-9cc4-42a4-8461-c8e3990b6910@suse.com (mailing list archive)
State New
Headers show
Series gnttab: complete compat [gs]et-version logic | expand

Commit Message

Jan Beulich July 25, 2024, 9:56 a.m. UTC
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.
diff mbox series

Patch

--- 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