[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.2102051013440.28696@cbobk.fhfr.pm>
Date: Fri, 5 Feb 2021 10:13:54 +0100 (CET)
From: Jiri Kosina <jikos@...nel.org>
To: Colin King <colin.king@...onical.com>
cc: Hans de Goede <hdegoede@...hat.com>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>,
linux-input@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] HID: lg-g15: make a const array static, makes object
smaller
On Thu, 4 Feb 2021, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Don't populate the const array led_names on the stack but instead make
> it static. Makes the object code smaller by 79 bytes:
>
> Before:
> text data bss dec hex filename
> 19686 7952 256 27894 6cf6 drivers/hid/hid-lg-g15.o
>
> After:
> text data bss dec hex filename
> 19543 8016 256 27815 6ca7 drivers/hid/hid-lg-g15.o
>
> (gcc version 10.2.0)
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists