Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262374AbUKKWbL (ORCPT ); Thu, 11 Nov 2004 17:31:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262376AbUKKWbL (ORCPT ); Thu, 11 Nov 2004 17:31:11 -0500 Received: from fw.osdl.org ([65.172.181.6]:52461 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262374AbUKKWbF (ORCPT ); Thu, 11 Nov 2004 17:31:05 -0500 Date: Thu, 11 Nov 2004 14:30:45 -0800 (PST) From: Linus Torvalds To: Len Brown cc: Arnaldo Carvalho de Melo , Kernel Mailing List , Natalie Protasevich Subject: Re: [PATCH] fix platform_rename_gsi related ia32 build breakage In-Reply-To: <1100211749.5510.753.camel@d845pe> Message-ID: References: <4192A959.9020806@conectiva.com.br> <4192A9BF.2080606@conectiva.com.br> <4192ADF4.1050907@conectiva.com.br> <1100211749.5510.753.camel@d845pe> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 36 On Thu, 11 Nov 2004, Len Brown wrote: > > I used a function pointer here because the same kernel binary must be > able to run on an ES7000 or a non-ES7000, so the compile-time inline > idiom doesn't work. Sure it does. Do something like this in a header file static inline int translate_irq_number(...) { #ifdef CONFIG_ACPI_BOOT return fn_ptr_xxx(); #else return irq; #endif } which means that yes, it uses the function pointer when it is meaningful, but if there is no point, the code just goes away. > If you read this far and have suggestions for a more descriptive name > than platform_rename_gsi(), just let me know. At _least_ write out what the hell "gsi" is. TLA's are bad. "gsi" apparently isn't the Geological Survey of Ireland, but that's all I can tell from google. Linus - 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/