From owner-svn-src-all@freebsd.org Fri May 25 08:44:01 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4FBAF764F9; Fri, 25 May 2018 08:44:01 +0000 (UTC) (envelope-from royger@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 555EA784B2; Fri, 25 May 2018 08:44:01 +0000 (UTC) (envelope-from royger@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 37C4C1E932; Fri, 25 May 2018 08:44:01 +0000 (UTC) (envelope-from royger@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4P8i1xA061143; Fri, 25 May 2018 08:44:01 GMT (envelope-from royger@FreeBSD.org) Received: (from royger@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4P8i1rl061142; Fri, 25 May 2018 08:44:01 GMT (envelope-from royger@FreeBSD.org) Message-Id: <201805250844.w4P8i1rl061142@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: royger set sender to royger@FreeBSD.org using -f From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Date: Fri, 25 May 2018 08:44:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334205 - head/sys/xen X-SVN-Group: head X-SVN-Commit-Author: royger X-SVN-Commit-Paths: head/sys/xen X-SVN-Commit-Revision: 334205 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2018 08:44:01 -0000 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 - -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__ */