From owner-freebsd-xen@freebsd.org Thu May 24 14:06:54 2018 Return-Path: Delivered-To: freebsd-xen@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 CDA91EF238A for ; Thu, 24 May 2018 14:06:54 +0000 (UTC) (envelope-from prvs=6753c1084=roger.pau@citrix.com) Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [185.25.65.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.citrix.com", Issuer "DigiCert SHA2 Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1640E6D45C; Thu, 24 May 2018 14:06:53 +0000 (UTC) (envelope-from prvs=6753c1084=roger.pau@citrix.com) X-IronPort-AV: E=Sophos;i="5.49,436,1520899200"; d="scan'208";a="73654383" Date: Thu, 24 May 2018 16:06:36 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Pratyush Yadav CC: FreeBSD-Xen Subject: Re: Leftover code in gnttab.h? Message-ID: <20180524140636.7vz2gjshqow6efwe@MBP-de-Roger.citrite.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323 X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL02.citrite.net (10.69.22.126) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2018 14:06:55 -0000 On Thu, May 24, 2018 at 05:53:02PM +0530, Pratyush Yadav wrote: > Hi everyone, > > I was reading the Xen grant table code and I noticed that some code is > wrapped in an #if 0. You can see it in sys/xen/gnttab.h:138. I have > also attached the "commented out" part down below. > > Is it useful? Is it all right if I submit a patch that removes it? This are leftovers from when the code was imported from Linux AFAICT. I guess the original committer thought that those functions would be implemented, so the prototypes where left in place. If you give me a patch to remove them I'm happy to commit it. Roger.