Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2018 08:44:01 +0000 (UTC)
From:      =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334205 - head/sys/xen
Message-ID:  <201805250844.w4P8i1rl061142@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: royger
Date: Fri May 25 08:44:00 2018
New Revision: 334205
URL: https://svnweb.freebsd.org/changeset/base/334205

Log:
  xen: remove dead code from gnttab.h
  
  This code was left over when it was imported from Linux. The original
  committer thought that those functions would be implemented, so the
  prototypes where left in place. Delete them at once.
  
  Submitted by:		pratyush
  Reviewed by:		royger
  Differential Review:	https://reviews.freebsd.org/D15553

Modified:
  head/sys/xen/gnttab.h

Modified: head/sys/xen/gnttab.h
==============================================================================
--- head/sys/xen/gnttab.h	Fri May 25 07:33:20 2018	(r334204)
+++ head/sys/xen/gnttab.h	Fri May 25 08:44:00 2018	(r334205)
@@ -117,46 +117,4 @@ void gnttab_grant_foreign_transfer_ref(grant_ref_t, do
 int gnttab_suspend(void);
 int gnttab_resume(device_t);
 
-#if 0
-
-#include <xen/features.h>
-
-static inline void
-gnttab_set_map_op(struct gnttab_map_grant_ref *map, vm_paddr_t addr,
-		  uint32_t flags, grant_ref_t ref, domid_t domid)
-{
-	if (flags & GNTMAP_contains_pte)
-		map->host_addr = addr;
-	else
-		map->host_addr = vtophys(addr);
-
-	map->flags = flags;
-	map->ref = ref;
-	map->dom = domid;
-}
-
-static inline void
-gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, vm_paddr_t addr,
-		    uint32_t flags, grant_handle_t handle)
-{
-	if (flags & GNTMAP_contains_pte)
-		unmap->host_addr = addr;
-	else
-		unmap->host_addr = vtophys(addr);
-
-	unmap->handle = handle;
-	unmap->dev_bus_addr = 0;
-}
-
-static inline void
-gnttab_set_replace_op(struct gnttab_unmap_and_replace *unmap, vm_paddr_t addr,
-		      vm_paddr_t new_addr, grant_handle_t handle)
-{
-	unmap->host_addr = vtophys(addr);
-	unmap->new_addr = vtophys(new_addr);
-
-	unmap->handle = handle;
-}
-#endif
-
 #endif /* __ASM_GNTTAB_H__ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805250844.w4P8i1rl061142>