]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: make array speeds static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 19 Aug 2021 11:52:53 +0000 (12:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2021 12:23:20 +0000 (13:23 +0100)
commit2ac4f3b07ecf7f32c384014cd0fb2205b9d196bf
tree363ff3f2d6338af139013b96e5974a7bf5832ec8
parent0c57269322b5c32735c2b5913e86386f8615993a
hinic: make array speeds static const, makes object smaller

Don't populate the array speeds on the stack but instead it
static const. Makes the object code smaller by 17 bytes:

Before:
   text    data     bss     dec     hex filename
  39987   14200      64   54251    d3eb .../huawei/hinic/hinic_sriov.o

After:
   text    data     bss     dec     hex filename
  39906   14264      64   54234    d3da .../huawei/hinic/hinic_sriov.o

(gcc version 10.3.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_sriov.c