From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374Ab1GGX3H (ORCPT ); Thu, 7 Jul 2011 19:29:07 -0400 Received: from queueout04-winn.ispmail.ntl.com ([81.103.221.58]:52137 "EHLO queueout04-winn.ispmail.ntl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932Ab1GGX3F (ORCPT ); Thu, 7 Jul 2011 19:29:05 -0400 Subject: Re: Build issue with linux next. duplicate member _count in mm_types.h From: Steven Newbury To: Christoph Lameter Cc: Jonathan Cameron , "linux-next@vger.kernel.org" , LKML , Pekka Enberg , Stephen Rothwell Date: Thu, 07 Jul 2011 23:56:46 +0100 In-Reply-To: References: <4E143120.2020501@cam.ac.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2 Content-Transfer-Encoding: 7bit Message-ID: <1310079408.31261.6.camel@infinity> Mime-Version: 1.0 X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=sMO6HKB5UtYA:10 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=mDV3o1hIAAAA:8 a=NmoMSLsxmmZMzU6CVXcA:9 a=QEXdDO2ut3YA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2011-07-06 at 09:46 -0500, Christoph Lameter wrote: > On Wed, 6 Jul 2011, Jonathan Cameron wrote: > > > Getting: > > > > CHK include/linux/version.h > > CHK include/generated/utsrelease.h > > make[1]: `include/generated/mach-types.h' is up to date. > > CC arch/arm/kernel/asm-offsets.s > > In file included from include/linux/sched.h:64:0, > > from arch/arm/kernel/asm-offsets.c:13: > > include/linux/mm_types.h:74:15: error: duplicate member '_count' > > make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1 > > make: *** [prepare0] Error 2 > > > > Issue looks to have been introduced by > > > > mm: Rearrange struct page > > > > fc9bb8c768abe7ae10861c3510e01a95f98d5933 > > > > Guessing it's a known issue, but just thought I'd flag it up in case > > it's something very specific about my build. > > > > gcc-2.6 armv7a > > > > Reverting that patch works, but given I don't know the history, I'm > > not proposing doing that in general! > > Well _count exists in two unionized structs but always has the same offset > within the larger struct. Maybe ARM creates different offsets there for > some reason? This is due to this fix hitting gcc-4.6: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4784