dpaa2-eth: make the array faf_bits static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sun, 1 Aug 2021 15:22:09 +0000 (16:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 Aug 2021 22:01:55 +0000 (15:01 -0700)
commitd5731f891a0c194fa4231c67a984b75f55c7674f
treec2d1d43305ffc698918b32ccb27e83311cdf7ed8
parenta6afdb041a2d7f514711b3bd27227e83d3cd9cf4
dpaa2-eth: make the array faf_bits static const, makes object smaller

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

Before:
   text  data   bss     dec   hex filename
   9645  4552     0   14197  3775 ../freescale/dpaa2/dpaa2-eth-devlink.o

After:
   text  data   bss     dec   hex filename
   9406  4616     0   14022  36c6 ../freescale/dpaa2/dpaa2-eth-devlink.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210801152209.146359-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-devlink.c