Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755566Ab2FDCTO (ORCPT ); Sun, 3 Jun 2012 22:19:14 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:61397 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755096Ab2FDCTN (ORCPT ); Sun, 3 Jun 2012 22:19:13 -0400 Date: Mon, 4 Jun 2012 10:18:40 +0800 From: Yong Zhang To: "Srivatsa S. Bhat" Cc: "linux-kernel@vger.kernel.org" , Tony Luck , Ralf Baechle , Benjamin Herrenschmidt , Paul Mundt , Chris Metcalf , Konrad Rzeszutek Wilk , Mike Frysinger , Hirokazu Takata , Richard Kuo , David Howells , Bob Liu , "David S. Miller" , Richard Weinberger , Jesper Nilsson , "James E.J. Bottomley" , Martin Schwidefsky , Russell King , Matt Turner , nikunj@linux.vnet.ibm.com Subject: Re: [PATCH 01/27] smpboot: Provide a generic method to boot secondary processors Message-ID: <20120604021839.GB26319@zhy> Reply-To: Yong Zhang References: <20120601090952.31979.24799.stgit@srivatsabhat.in.ibm.com> <20120601091008.31979.93586.stgit@srivatsabhat.in.ibm.com> <4FC8B0F7.3060705@linux.vnet.ibm.com> <20120603085107.GD16829@zhy> <4FCB48EF.8050508@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FCB48EF.8050508@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 18 On Sun, Jun 03, 2012 at 04:52:23PM +0530, Srivatsa S. Bhat wrote: > In short, to avoid breaking build on x86. > We wanted to follow the x86 convention of having static inline functions in > arch/x86/include/asm/smp.h and use the smp_ops structure to route the calls > to x86 or xen as appropriate (see patch 4 in this series). > > But __weak definitions interfere with that and break the build. Hence, we > followed what Linus suggested doing in a similar context: > https://lkml.org/lkml/2008/7/26/187 Good to know that, thanks for your explanation. Yong -- 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/