From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S273026AbTGaOS5 (ORCPT ); Thu, 31 Jul 2003 10:18:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272491AbTGaOS5 (ORCPT ); Thu, 31 Jul 2003 10:18:57 -0400 Received: from 169.imtp.Ilyichevsk.Odessa.UA ([195.66.192.169]:50188 "EHLO Port.imtp.ilyichevsk.odessa.ua") by vger.kernel.org with ESMTP id S273026AbTGaOSy (ORCPT ); Thu, 31 Jul 2003 10:18:54 -0400 Message-Id: <200307311357.h6VDvEj20416@Port.imtp.ilyichevsk.odessa.ua> Content-Type: text/plain; charset=US-ASCII From: Denis Vlasenko Reply-To: vda@port.imtp.ilyichevsk.odessa.ua To: OGAWA Hirofumi Subject: Re: [PATCH] Inline vfat_strnicmp() Date: Thu, 31 Jul 2003 17:06:42 +0300 X-Mailer: KMail [version 1.3.2] Cc: Ren , linux-kernel@vger.kernel.org References: <20030727172150.15f8df7f.l.s.r@web.de> <200307311224.h6VCOMj19676@Port.imtp.ilyichevsk.odessa.ua> <87r846yfag.fsf@devron.myhome.or.jp> In-Reply-To: <87r846yfag.fsf@devron.myhome.or.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 31 July 2003 16:52, OGAWA Hirofumi wrote: > Denis Vlasenko writes: > > > On 27 July 2003 19:33, OGAWA Hirofumi wrote: > > > Ren writes: > > > > > > > the function vfat_strnicmp() has just one callsite. Inlining it > > > > actually shrinks vfat.o slightly. > > > > > > Thanks. I'll submit this patch to Linus. > > > > Just to deinline it in some months? > > > > Come on, automatically inlining static functions with > > just one callsite is a compiler's job. Don't do it. > > Unfortunately "gcc version 3.2.3 20030415 (Debian prerelease)" > doesn't, at least. Yes, but some future version would. Since there is no substantial wins in hunting down such statics, and there is some risk of code bloat when big inlined statics get called from more that one callsite, and it will be automatically handled by smarter compiler someday, I think it makes perfect sense to avoid doing this. -- vda