Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964888AbVL1TaX (ORCPT ); Wed, 28 Dec 2005 14:30:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964889AbVL1TaX (ORCPT ); Wed, 28 Dec 2005 14:30:23 -0500 Received: from thorn.pobox.com ([208.210.124.75]:17040 "EHLO thorn.pobox.com") by vger.kernel.org with ESMTP id S964888AbVL1TaX (ORCPT ); Wed, 28 Dec 2005 14:30:23 -0500 Date: Wed, 28 Dec 2005 13:30:12 -0600 From: Nathan Lynch To: Sonny Rao 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: <20051228193012.GF12674@localhost.localdomain> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051222194511.GB24385@kevlar.burdell.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 803 Lines: 21 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? - 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/