Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932561AbVL2Abc (ORCPT ); Wed, 28 Dec 2005 19:31:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932562AbVL2Abc (ORCPT ); Wed, 28 Dec 2005 19:31:32 -0500 Received: from dsl092-073-214.bos1.dsl.speakeasy.net ([66.92.73.214]:50138 "EHLO kevlar.burdell.org") by vger.kernel.org with ESMTP id S932561AbVL2Abb (ORCPT ); Wed, 28 Dec 2005 19:31:31 -0500 Date: Wed, 28 Dec 2005 19:30:25 -0500 From: Sonny Rao To: Nathan Lynch Cc: Ravikiran G Thirumalai , linux-kernel@vger.kernel.org, manfred@colorfullife.com, clameter@sgi.com, anton@samba.org, shai@scalex86.org, sonnyrao@us.ibm.com, alokk@calsoftinc.com Subject: Re: cpu hotplug oops on 2.6.15-rc5 Message-ID: <20051229003025.GA30666@kevlar.burdell.org> References: <20051219051659.GA6299@kevlar.burdell.org> <20051222092743.GE3915@localhost.localdomain> <20051222173700.GA5723@localhost.localdomain> <20051222175311.GA22393@kevlar.burdell.org> <20051222183750.GA3704@localhost.localdomain> <20051222194511.GB24385@kevlar.burdell.org> <20051228193012.GF12674@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051228193012.GF12674@localhost.localdomain> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1140 Lines: 29 On Wed, Dec 28, 2005 at 01:30:12PM -0600, Nathan Lynch wrote: > I wonder if this is related to the problem Sonny is seeing -- powerpc's > definitions of cpu_to_node et al. are not being used. The culprit is > some too-clever preprocessor usage in asm-generic/topology.h, for > example: > > > #ifndef cpu_to_node > #define cpu_to_node(cpu) (0) > #endif > > But asm-powerpc/topology.h has cpu_to_node defined as a static inline > (which does not make it a preprocessor symbol), so we get the generic > - and incorrect - definition. > > Does removing the #include of asm-generic/topology.h from the bottom > of asm-powerpc/topology.h have any effect? Hi, no it doesn't make a difference. That include is protected by CONFIG_NUMA as well, so it never gets hit. At Anton's suggestion I even put in an #error into asm-generic/topology.h to make sure it wasn't an issue -- it didn't hit. Sonny - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/