Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1685230

Re: [PATCH] scsi: hisi_sas: make several const arrays static

From John Garry <john.garry@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH] scsi: hisi_sas: make several const arrays static
Date 2017-07-11 19:20 +0200
Message-ID <u26Zl-59q-31@gated-at.bofh.it> (permalink)
References <u22iZ-29B-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/07/2017 13:11, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate various tables on the stack but make them static const.
> Makes the object code smaller by over 280 bytes:
>
> Before:
>    text	   data	    bss	    dec	    hex	filename
>   39887	   5080	     64	  45031	   afe7	hisi_sas_v2_hw.o
>
> After:
>    text	   data	    bss	    dec	    hex	filename
>   39318	   5368	     64	  44750	   aece	hisi_sas_v2_hw.o
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---

Acked-by: John Garry <john.garry@huawei.com>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] scsi: hisi_sas: make several const arrays static Colin King <colin.king@canonical.com> - 2017-07-11 14:20 +0200
  Re: [PATCH] scsi: hisi_sas: make several const arrays static John Garry <john.garry@huawei.com> - 2017-07-11 19:20 +0200
  Re: [PATCH] scsi: hisi_sas: make several const arrays static "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-07-12 23:30 +0200

csiph-web