[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5h8termrff.wl-tiwai@suse.de>
Date: Mon, 27 Nov 2017 20:51:00 +0100
From: Takashi Iwai <tiwai@...e.de>
To: "Colin King" <colin.king@...onical.com>
Cc: <alsa-devel@...a-project.org>, "Jaroslav Kysela" <perex@...ex.cz>,
<kernel-janitors@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ALSA: drivers: make array 'names' const, reduces object code size
On Mon, 27 Nov 2017 13:58:51 +0100,
Colin King wrote:
>
> From: Colin Ian King <colin.king@...onical.com>
>
> Don't populate array 'names' on the stack but instead make them static.
> Makes the object code smaller by 50 bytes:
>
> Before:
> text data bss dec hex filename
> 21237 9192 1120 31549 7b3d linux/sound/drivers/dummy.o
>
> After:
> text data bss dec hex filename
> 21095 9280 1120 31495 7b07 linux/sound/drivers/dummy.o
>
> (gcc version 7.2.0 x86_64)
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied, thanks.
Takashi
Powered by blists - more mailing lists