From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH] gpio: gpio-stmpe: make various char arrays static const, shrinks object size Date: Sat, 2 Dec 2017 13:05:51 +0100 Message-ID: References: <20171128182339.24579-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from mail-it0-f68.google.com ([209.85.214.68]:38364 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568AbdLBMFw (ORCPT ); Sat, 2 Dec 2017 07:05:52 -0500 Received: by mail-it0-f68.google.com with SMTP id r6so5227184itr.3 for ; Sat, 02 Dec 2017 04:05:52 -0800 (PST) In-Reply-To: <20171128182339.24579-1-colin.king@canonical.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Colin King Cc: linux-gpio@vger.kernel.org, kernel-janitors@vger.kernel.org, "linux-kernel@vger.kernel.org" On Tue, Nov 28, 2017 at 7:23 PM, Colin King wrote: > From: Colin Ian King > > Don't populate the read-only arrays edge_det_values, rise_values and > fall_values on the stack but instead make them static and constify them. > Makes the object code smaller by over 240 bytes: > > Before: > text data bss dec hex filename > 9525 2520 192 12237 2fcd drivers/gpio/gpio-stmpe.o > > After: > text data bss dec hex filename > 9025 2776 192 11993 2ed9 drivers/gpio/gpio-stmpe.o > > (gcc version 7.2.0 x86_64) > > Signed-off-by: Colin Ian King Patch applied. Yours, Linus Walleij