tools/libs/gnttab: remove old mini-os callback
authorJuergen Gross <jgross@suse.com>
Wed, 19 Jan 2022 07:28:23 +0000 (08:28 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 19 Jan 2022 09:38:01 +0000 (09:38 +0000)
It is possible now to delete minios_gnttab_close_fd().

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/gnttab/minios.c

index f59fad3577c2d2e11c2497f5d07766d370500e7f..cac89f0ba6206df7e4271427269cd4e39069a459 100644 (file)
@@ -33,8 +33,6 @@
 
 #include "private.h"
 
-void minios_gnttab_close_fd(int fd);
-
 static int gnttab_close_fd(struct file *file)
 {
     gntmap_fini(file->dev);
@@ -89,13 +87,6 @@ int osdep_gnttab_close(xengnttab_handle *xgt)
     return close(xgt->fd);
 }
 
-void minios_gnttab_close_fd(int fd)
-{
-    struct file *file = get_file_from_fd(fd);
-
-    gnttab_close_fd(file);
-}
-
 void *osdep_gnttab_grant_map(xengnttab_handle *xgt,
                              uint32_t count, int flags, int prot,
                              uint32_t *domids, uint32_t *refs,