Received: from eggs.gnu.org ([208.118.235.92]:50758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCnQ-0004jr-Bb for qemu-devel@nongnu.org; Thu, 29 Mar 2012 06:41:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDCnL-0003B9-6Q for qemu-devel@nongnu.org; Thu, 29 Mar 2012 06:41:35 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:59438 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCnK-0003Ah-WC for qemu-devel@nongnu.org; Thu, 29 Mar 2012 06:41:31 -0400 Message-ID: <1333017683.18810.59.camel@zakaz.uk.xensource.com> From: Ian Campbell Date: Thu, 29 Mar 2012 11:41:23 +0100 In-Reply-To: <20120329022725.GA26286@morn.localdomain> References: <1332908730.10322.4.camel@nzhmlwks0057.ad.endace.com> <1332908891.10322.7.camel@nzhmlwks0057.ad.endace.com> <4F73228B.4050804@redhat.com> <20120329022725.GA26286@morn.localdomain> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH 1/4] Add basic linked list operations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: sfd@endace.com, seabios@seabios.org, Gerd Hoffmann , qemu-devel@nongnu.org On Wed, 2012-03-28 at 22:27 -0400, Kevin O'Connor wrote: > On Wed, Mar 28, 2012 at 04:39:07PM +0200, Gerd Hoffmann wrote: > > On 03/28/12 06:28, Alexey Korolev wrote: > > > This linked list implementation is partially based on kernel code. So it > > > should be quite stable > > > > How about just copying the file? > > > > I've used the linux kernel list implementation elsewhere too and it > > worked just fine with only minor tweaks (remove some likely()/unlikely() > > macros IIRC). > > Linux is GPLv2 while SeaBIOS is LGPLv3, so some care should be taken. FWIW In Xen we decided to go with the BSD list macros in our LGPL library interfaces to avoid a similar sort issue. http://xenbits.xen.org/hg/xen-unstable.hg/file/74d2af0b56ea/tools/include/xen-external has that plus a handy sed script to namespace the interface, although I don't suppose that will matter inside seabios. Ian.