diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-07-22 17:01:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-24 15:46:11 -0700 |
commit | 7c116e02a4a7575c8c62bfd2106e3e3ec8fb99dc (patch) | |
tree | 6313d945feb6b0d9510f775b3e848f5be3d58441 /drivers/net/caif | |
parent | 81cd17a4121d7dc7cad28e51251f31ff12b1de2b (diff) | |
download | linux-7c116e02a4a7575c8c62bfd2106e3e3ec8fb99dc.tar.bz2 |
qed: reduce maximum stack frame size
clang warns about an overly large stack frame in one function
when it decides to inline all __qed_get_vport_*() functions into
__qed_get_vport_stats():
drivers/net/ethernet/qlogic/qed/qed_l2.c:1889:13: error: stack frame size of 1128 bytes in function '_qed_get_vport_stats' [-Werror,-Wframe-larger-than=]
Use a noinline_for_stack annotation to prevent clang from inlining
these, which keeps the maximum stack usage at around half of that
in the worst case, similar to what we get with gcc.
Fixes: 86622ee75312 ("qed: Move statistics to L2 code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/caif')
0 files changed, 0 insertions, 0 deletions