From: "Jan Beulich" Subject: Re: [PATCHv6 1/3] xen: use ticket locks for spin locks Date: Mon, 18 May 2015 16:49:05 +0100 Message-ID: <555A2611020000780007B4B1@mail.emea.novell.com> References: <1431602502-22327-1-git-send-email-david.vrabel@citrix.com> <1431602502-22327-2-git-send-email-david.vrabel@citrix.com> <5559D821020000780007AFC2@mail.emea.novell.com> <555A0650.8010901@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YuNHx-0006t0-PP for xen-devel@lists.xenproject.org; Mon, 18 May 2015 15:49:09 +0000 In-Reply-To: <555A0650.8010901@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Andrew Cooper , Jennifer Herbert , Tim Deegan , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 18.05.15 at 17:33, wrote: > On 18/05/15 11:16, Jan Beulich wrote: >>>>> On 14.05.15 at 13:21, wrote: >>> void _spin_lock(spinlock_t *lock) >>> { >>> + spinlock_tickets_t tickets = { .tail = 1, }; >> >> This breaks the build on gcc 4.3.x (due to tail being a member of an >> unnamed structure member of a union). > > I don't have a gcc that old to hand but isn't the error here that .tail > is part of the structure that isn't the first member of a union? No, the error is "unknown field 'tail' specified in initializer", and ... > Does this fix your gcc 4.3 build? ... hence this doesn't help. Iirc you just can't have initializers for unnamed fields or their descendants. Jan