From: Keir Fraser Subject: Re: [PATCH] x86: force out-of-line instances of inline functions into .init.text in init-only code Date: Fri, 11 Mar 2011 16:16:32 +0000 Message-ID: References: <4D7A571E0200007800035EF2@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D7A571E0200007800035EF2@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 11/03/2011 16:08, "Jan Beulich" wrote: > Some compiler versions may choose to not inline certain functions, > but the check introduced in c/s 23003:768269c43914 and applying to > domain_build.o as of 23011:be7e54d86c57 wants .text to be empty. Isn't this a possible problem for any file compiled under the rules of obj-bin-y? If so, below should be defined for all such source files, perhaps -D a macro def on $CC command line in that case (e.g., some obvious textual macro name) and then pick up on that in to suitably re-define inline and always_inline (and explain why in a code comment). -- Keir > Signed-off-by: Jan Beulich > > --- 2011-03-09.orig/xen/arch/x86/domain_build.c > +++ 2011-03-09/xen/arch/x86/domain_build.c > @@ -5,6 +5,7 @@ > */ > > #include > +#define __inline__ __inline__ __init > #include > #include > #include > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel