From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933321AbXHaVVN (ORCPT ); Fri, 31 Aug 2007 17:21:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932927AbXHaVU4 (ORCPT ); Fri, 31 Aug 2007 17:20:56 -0400 Received: from nf-out-0910.google.com ([64.233.182.191]:34637 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932074AbXHaVUz (ORCPT ); Fri, 31 Aug 2007 17:20:55 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=GMnre2Gn+WNw5iTi7N12LLUzFlrzIqetWhr2qV5NZHcK91G/nr2F59FwvAmd7pSsrjyGATawjWsqkF012aGZh3yv6+jI/hdEXPqWgv1bobZ7IcwcVSe3vAVdSIbAs7ZwDgpaZVoJHXpwMtK4UDUBO6XH91xVVwLKK4/UBhr1zWg= From: Denys Vlasenko To: Valdis.Kletnieks@vt.edu Subject: Re: [PATCH 0/3] debloat aic7xxx and aic79xx drivers Date: Fri, 31 Aug 2007 22:20:36 +0100 User-Agent: KMail/1.9.1 Cc: Hannes Reinecke , Jan Engelhardt , Matthew Wilcox , Arjan van de Ven , Adrian Bunk , Andrew Morton , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <200708311613.59666.vda.linux@googlemail.com> <31870.1188577642@turing-police.cc.vt.edu> In-Reply-To: <31870.1188577642@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708312220.36818.vda.linux@googlemail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Friday 31 August 2007 17:27, Valdis.Kletnieks@vt.edu wrote: > On Fri, 31 Aug 2007 16:13:59 BST, Denys Vlasenko said: > > > > text data bss dec hex filename > > 261433 50018 1172 312623 4c52f linux-2.6.23-rc1.org.t/drivers/scsi/aic7xxx/built-in.o > > 199654 50018 1172 250844 3d3dc linux-2.6.23-rc1.aic.t/drivers/scsi/aic7xxx/built-in.o > > 184014 21314 1172 206500 326a4 linux-2.6.23-rc1.aic1.t/drivers/scsi/aic7xxx/built-in.o > > 202378 2850 1172 206400 32640 linux-2.6.23-rc1.aic2.t/drivers/scsi/aic7xxx/built-in.o > > > > 1-debloat.patch deinlines a lot of functions > > 2-addstatic.patch adds statics, #ifdefs out huge amount of unused code, adds consts > > 3-addconst.patch adds more consts > > Yowza. Looking at aic1->aic2, it looks like 20K became 'const', and only > 3K *wasn't* 'const'? Exactly. There are firmware images/patches and a lot of structures with char* members pointing to text/messages. Btw, aic94xx driver needs the same treatment. -- vda