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


Groups > linux.kernel > #1685788

RE: [PATCH] net: broadcom: bnx2x: make a couple of const arrays static

From "Mintz, Yuval" <Yuval.Mintz@cavium.com>
Newsgroups linux.kernel
Subject RE: [PATCH] net: broadcom: bnx2x: make a couple of const arrays static
Date 2017-07-12 15:50 +0200
Message-ID <u2qbE-pT-19@gated-at.bofh.it> (permalink)
References <u213A-1g3-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> Don't populate various tables on the stack but make them static const.
> Makes the object code smaller by nearly 200 bytes:
> 
> Before:
>    text	   data	    bss	    dec	    hex	filename
>  113468	  11200	      0	 124668	  1e6fc	bnx2x_ethtool.o
> 
> After:
>    text	   data	    bss	    dec	    hex	filename
>  113129	  11344	      0	 124473	  1e639	bnx2x_ethtool.o
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Thanks Colin.
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>

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


Thread

[PATCH] net: broadcom: bnx2x: make a couple of const arrays static Colin King <colin.king@canonical.com> - 2017-07-11 13:00 +0200
  RE: [PATCH] net: broadcom: bnx2x: make a couple of const arrays  static "Mintz, Yuval" <Yuval.Mintz@cavium.com> - 2017-07-12 15:50 +0200
  Re: [PATCH] net: broadcom: bnx2x: make a couple of const arrays  static David Miller <davem@davemloft.net> - 2017-07-13 18:30 +0200

csiph-web