summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-08-01 16:37:42 +0100
committerJakub Kicinski <kuba@kernel.org>2021-08-02 15:02:13 -0700
commit7cdd0a89ec70ce6a720171f1f7817ee9502b134c (patch)
treea6a59394a75a49c665e21ca9859080b06c1e2697 /kernel
parent771edeabcb9530e9e8020fb5f38111ba5dc1ad9c (diff)
downloadlinux-7cdd0a89ec70ce6a720171f1f7817ee9502b134c.tar.bz2
net/mlx4: make the array states static const, makes object smaller
Don't populate the array states on the stack but instead it static const. Makes the object code smaller by 79 bytes. Before: text data bss dec hex filename 21309 8304 192 29805 746d drivers/net/ethernet/mellanox/mlx4/qp.o After: text data bss dec hex filename 21166 8368 192 29726 741e drivers/net/ethernet/mellanox/mlx4/qp.o (gcc version 10.2.0) Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Link: https://lore.kernel.org/r/20210801153742.147304-1-colin.king@canonical.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions