From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763352AbYD0Sbs (ORCPT ); Sun, 27 Apr 2008 14:31:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759532AbYD0Sbj (ORCPT ); Sun, 27 Apr 2008 14:31:39 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:55537 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759061AbYD0Sbi (ORCPT ); Sun, 27 Apr 2008 14:31:38 -0400 Date: Sun, 27 Apr 2008 11:30:57 -0700 (PDT) From: Linus Torvalds To: Christoph Hellwig cc: Adrian Bunk , Sam Ravnborg , linux arch , LKML , Ingo Molnar , David Miller Subject: Re: [PATCH] prepare kconfig inline optimization for all architectures In-Reply-To: <20080427182544.GA23828@infradead.org> Message-ID: References: <20080427105100.GA14795@uranus.ravnborg.org> <20080427113158.GY2252@cs181133002.pp.htv.fi> <20080427172235.GA2252@cs181133002.pp.htv.fi> <20080427174714.GB2252@cs181133002.pp.htv.fi> <20080427182544.GA23828@infradead.org> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 27 Apr 2008, Christoph Hellwig wrote: > > Actually looking at older code in the tree he's most likely wrong :) > Probably as bad as the compiler. But the nice part about the code is > that we can fix it easily. Good point. It *would* be really interesting to have some way to check our assumptions (both ways - warn about over-large inlines and small-and-hot non-inlines). I considered making sparse give some size estimate for inlines and warn about ones that generate a lot of code, but I was never able to do it sanely. Linus