From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH][2.6.8-rc1-mm1] drivers/scsi/sg.c gcc341 inlining fix Date: Wed, 14 Jul 2004 14:35:08 -0700 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20040714143508.3dc25d58.akpm@osdl.org> References: <200407141751.i6EHprhf009045@harpo.it.uu.se> <40F57D14.9030005@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from fw.osdl.org ([65.172.181.6]:11433 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S265971AbUGNWuo (ORCPT ); Wed, 14 Jul 2004 18:50:44 -0400 In-Reply-To: <40F57D14.9030005@pobox.com> List-Id: linux-scsi@vger.kernel.org To: Jeff Garzik Cc: mikpe@csd.uu.se, B.Zolnierkiewicz@elka.pw.edu.pl, dgilbert@interlog.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Jeff Garzik wrote: > > Or you could just call it "gcc is dumb" rather than a compiler bug. Yeah, but doing: static inline foo(void); bar() { ... foo(); } static inline foo(void) { ... } is pretty dumb too. I don't see any harm if this compiler feature/problem pushes us to fix the above in the obvious way. Plus if we do, the inlining attempt actually succeed, on all compiler versions.