net: hns3: make array tick_array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 11:09:35 +0000 (12:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Oct 2019 14:00:20 +0000 (10:00 -0400)
commit3ea7af9e2caaec13a455974b04bfa357faf18baf
tree73abccb210cfdc802a404fd8b2b0c98252695d1c
parent99d895729f5d438518c8223d7ce81615cb9a88e9
net: hns3: make array tick_array static, makes object smaller

Don't populate the array tick_array on the stack but instead make it
static. Makes the object code smaller by 29 bytes.

Before:
   text    data     bss     dec     hex filename
  19191     432       0   19623    4ca7 hisilicon/hns3/hns3pf/hclge_tm.o

After:
   text    data     bss     dec     hex filename
  19098     496       0   19594    4c8a hisilicon/hns3/hns3pf/hclge_tm.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c