From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751524AbdISSyL (ORCPT ); Tue, 19 Sep 2017 14:54:11 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:37669 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbdISSyJ (ORCPT ); Tue, 19 Sep 2017 14:54:09 -0400 X-Google-Smtp-Source: AOwi7QDfsmavNWE3zmztUJfAbvhor/poSLIgYzWl3GbC1N8jTUe1MT3dd197i/yCUWOvzWFXwLdvCw== Date: Tue, 19 Sep 2017 11:54:04 -0700 From: Tejun Heo To: Colin King Cc: linux-ide@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][V3] libata: make static arrays const, reduces object code size Message-ID: <20170919185404.GA828415@devbig577.frc2.facebook.com> References: <20170919083952.5648-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170919083952.5648-1-colin.king@canonical.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 19, 2017 at 09:39:52AM +0100, Colin King wrote: > From: Colin Ian King > > Don't populate const arrayis on the stack, instead make them static. > Makes the object code smaller by over 260 bytes: > > Before: > text data bss dec hex filename > 64864 5948 4128 74940 124bc drivers/ata/libata-scsi.o > > After: > text data bss dec hex filename > 64183 6364 4128 74675 123b3 drivers/ata/libata-scsi.o > > Signed-off-by: Colin Ian King Applied to libata/for-4.15. Thanks. -- tejun