mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
0629a330cf
struct qed_ll2_info is rather large, so putting it on the stack can cause an overflow, as this warning tries to tell us: drivers/net/ethernet/qlogic/qed/qed_ll2.c: In function 'qed_ll2_start': drivers/net/ethernet/qlogic/qed/qed_ll2.c:2159:1: error: the frame size of 1056 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] qed_ll2_start_ooo() already uses a dynamic allocation for the structure to work around that problem, and we could do the same in qed_ll2_start() as well as qed_roce_ll2_start(), but since the structure is only used to pass a couple of initialization values here, it seems nicer to replace it with a different structure. Lacking any idea for better naming, I'm adding 'struct qed_ll2_conn', which now contains all the initialization data, and this now simply gets copied into struct qed_ll2_info rather than assigning all members one by one. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
Makefile | ||
qed_cxt.c | ||
qed_cxt.h | ||
qed_dcbx.c | ||
qed_dcbx.h | ||
qed_debug.c | ||
qed_debug.h | ||
qed_dev_api.h | ||
qed_dev.c | ||
qed_hsi.h | ||
qed_hw.c | ||
qed_hw.h | ||
qed_init_fw_funcs.c | ||
qed_init_ops.c | ||
qed_init_ops.h | ||
qed_int.c | ||
qed_int.h | ||
qed_iscsi.c | ||
qed_iscsi.h | ||
qed_l2.c | ||
qed_l2.h | ||
qed_ll2.c | ||
qed_ll2.h | ||
qed_main.c | ||
qed_mcp.c | ||
qed_mcp.h | ||
qed_ooo.c | ||
qed_ooo.h | ||
qed_reg_addr.h | ||
qed_roce.c | ||
qed_roce.h | ||
qed_selftest.c | ||
qed_selftest.h | ||
qed_sp_commands.c | ||
qed_sp.h | ||
qed_spq.c | ||
qed_sriov.c | ||
qed_sriov.h | ||
qed_vf.c | ||
qed_vf.h | ||
qed.h |