From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755571AbZANCqJ (ORCPT ); Tue, 13 Jan 2009 21:46:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751900AbZANCpz (ORCPT ); Tue, 13 Jan 2009 21:45:55 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:55356 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555AbZANCpz (ORCPT ); Tue, 13 Jan 2009 21:45:55 -0500 Date: Tue, 13 Jan 2009 18:45:36 -0800 From: Andrew Morton To: David Miller , reif@earthlink.net, sparclinux-owner@vger.kernel.org, mingo@elte.hu, linux-kernel@vger.kernel.org Subject: Re: sparc32 compile error: redefinition of =?UTF-8?Q?=E2=80=98smp?= =?UTF-8?Q?=5Fcall=5Ffunction=5Fsingle=E2=80=99?= Message-Id: <20090113184536.95ebc973.akpm@linux-foundation.org> In-Reply-To: <20090113184239.e6b6e68e.akpm@linux-foundation.org> References: <496D4274.6000304@earthlink.net> <20090113.181039.185575172.davem@davemloft.net> <20090113184239.e6b6e68e.akpm@linux-foundation.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Jan 2009 18:42:39 -0800 Andrew Morton wrote: > On Tue, 13 Jan 2009 18:10:39 -0800 (PST) David Miller wrote: > > > From: Robert Reif > > Date: Tue, 13 Jan 2009 20:40:04 -0500 > > > > > Todays git produces this compile error on sparc32: > > > > > > kernel/up.c:10: error: redefinition of ___smp_call_function_single___ > > > /usr/src/sparc32/linux-2.6/arch/sparc/include/asm/smp_32.h:78: error: previous definition of ___smp_call_function_single___ was here > > > > Andrew, are you sure that Makefile condition for compiling > > up.o is correct? > > you give me grounds for now being ;) > > > ifeq ($(CONFIG_USE_GENERIC_SMP_HELPERS),y) > > obj-y += smp.o > > else > > obj-y += up.o > > endif > > > > If an arch doesn't use generic SMP helpers, there is no way > > we should compile up.c into the tree when SMP. > > > > How's about this? > > --- a/kernel/Makefile~a > +++ a/kernel/Makefile > @@ -43,7 +43,7 @@ obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o > ifeq ($(CONFIG_USE_GENERIC_SMP_HELPERS),y) > obj-y += smp.o > else > -obj-y += up.o > +obj-$(CONFIG_SMP) += up.o > endif > obj-$(CONFIG_SMP) += spinlock.o > obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o err, the other way of course... --- a/kernel/Makefile~a +++ a/kernel/Makefile @@ -43,6 +43,7 @@ obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o ifeq ($(CONFIG_USE_GENERIC_SMP_HELPERS),y) obj-y += smp.o else +ifneq ($(CONFIG_SMP),y) obj-y += up.o endif obj-$(CONFIG_SMP) += spinlock.o _