From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629AbYKXJnu (ORCPT ); Mon, 24 Nov 2008 04:43:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751793AbYKXJnm (ORCPT ); Mon, 24 Nov 2008 04:43:42 -0500 Received: from one.firstfloor.org ([213.235.205.2]:34388 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbYKXJnm (ORCPT ); Mon, 24 Nov 2008 04:43:42 -0500 Date: Mon, 24 Nov 2008 10:53:56 +0100 From: Andi Kleen To: Andreas Schwab Cc: Andi Kleen , Geert Uytterhoeven , =?iso-8859-1?B?VPZy9ms=?= Edwin , Ingo Molnar , Arjan van de Ven , Thomas Gleixner , Steven Rostedt , David Howells , linux-kernel@vger.kernel.org Subject: Re: [PATCH] __used is needed for function referenced only from inline asm Message-ID: <20081124095356.GW6703@one.firstfloor.org> References: <1227514662-10848-1-git-send-email-edwintorok@gmail.com> <873ahhiil1.fsf@basil.nowhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 24, 2008 at 10:32:54AM +0100, Andreas Schwab wrote: > Andi Kleen writes: > > > Geert Uytterhoeven writes: > >>> */ > >>> -static void noinline __sched > >>> +static __used noinline void __sched > >> > >> Perhaps we should incorporate it into `noinline'? > > > > No, we use noinline for other reasons too. Perhaps the other way > > around though. > > Or just drop noinline here (since there are no callers to inline into > anyway). That would seem fragile to me because it could hit later again when someone changes the code or adds debugging code. Better always have full annotations, even if you don't need them all at the moment. -Andi -- ak@linux.intel.com