]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: make arrays static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 12:03:08 +0000 (13:03 +0100)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 8 Oct 2019 18:47:41 +0000 (11:47 -0700)
commitcda522fab06e7081a5fd44a90ecf80f4453bed44
treee4221b1fcf43e0a9b53a967c94284cbd4f403cf3
parent380d512b1bf388ae4530f47be2afb498161d7e35
net: phy: mscc: make arrays static, makes object smaller

Don't populate const arrays on the stack but instead make them
static. Makes the object code smaller by 1058 bytes.

Before:
   text    data     bss     dec     hex filename
  29879    6144       0   36023    8cb7 drivers/net/phy/mscc.o

After:
   text    data     bss     dec     hex filename
  28437    6528       0   34965    8895 drivers/net/phy/mscc.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/phy/mscc.c