From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 3/3] Use __weak macro for smp_setup_processor_id Date: Fri, 18 Apr 2008 00:07:17 -0700 Message-ID: <20080418000717.5a9c9758.akpm@linux-foundation.org> References: <20080418065728.31AF4DE255@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080418065728.31AF4DE255-mnsaURCQ41sdnm+yROfE0A@public.gmane.org> Sender: linux-arch-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: To: Benjamin Herrenschmidt Cc: Paul Mackerras , linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux-Arch On Fri, 18 Apr 2008 16:56:18 +1000 Benjamin Herrenschmidt wrote: > Use the __weak macro instead of the longer __attribute__ ((weak)) form > > Signed-off-by: Benjamin Herrenschmidt > -- > > init/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-work.orig/init/main.c 2008-04-18 16:44:32.000000000 +1000 > +++ linux-work/init/main.c 2008-04-18 16:44:37.000000000 +1000 > @@ -500,7 +500,7 @@ static void __init boot_cpu_init(void) > cpu_set(cpu, cpu_possible_map); > } > > -void __init __attribute__((weak)) smp_setup_processor_id(void) > +void __init __weak smp_setup_processor_id(void) > { > } ack on all three. Please fold #3 into #1 and add both to git-powerpc. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:57739 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbYDRHHY (ORCPT ); Fri, 18 Apr 2008 03:07:24 -0400 Date: Fri, 18 Apr 2008 00:07:17 -0700 From: Andrew Morton Subject: Re: [PATCH 3/3] Use __weak macro for smp_setup_processor_id Message-ID: <20080418000717.5a9c9758.akpm@linux-foundation.org> In-Reply-To: <20080418065728.31AF4DE255@ozlabs.org> References: <20080418065728.31AF4DE255@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Benjamin Herrenschmidt Cc: Paul Mackerras , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, Linux-Arch Message-ID: <20080418070717.SLMJ7qR76T7uDZi4Sict1xHuSPnrojWGxnZBei8GdyY@z> On Fri, 18 Apr 2008 16:56:18 +1000 Benjamin Herrenschmidt wrote: > Use the __weak macro instead of the longer __attribute__ ((weak)) form > > Signed-off-by: Benjamin Herrenschmidt > -- > > init/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-work.orig/init/main.c 2008-04-18 16:44:32.000000000 +1000 > +++ linux-work/init/main.c 2008-04-18 16:44:37.000000000 +1000 > @@ -500,7 +500,7 @@ static void __init boot_cpu_init(void) > cpu_set(cpu, cpu_possible_map); > } > > -void __init __attribute__((weak)) smp_setup_processor_id(void) > +void __init __weak smp_setup_processor_id(void) > { > } ack on all three. Please fold #3 into #1 and add both to git-powerpc.