aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/lib/py/env.py
diff options
context:
space:
mode:
authorZhu Yanjun <[email protected]>2025-07-22 21:20:23 +0000
committerJakub Kicinski <[email protected]>2025-07-25 01:49:37 +0000
commit4335012705499aa24cec714ab746c0d3abf97cab (patch)
tree0724ebb625cf36727f3b36bccdd8937ccfc042e5 /tools/testing/selftests/drivers/net/lib/py/env.py
parentMerge branch 'use-enum-to-represent-the-napi-threaded-state' (diff)
downloadkernel-4335012705499aa24cec714ab746c0d3abf97cab.tar.gz
kernel-4335012705499aa24cec714ab746c0d3abf97cab.zip
net/mlx5: Fix build -Wframe-larger-than warnings
When building, the following warnings will appear. " pci_irq.c: In function ‘mlx5_ctrl_irq_request’: pci_irq.c:494:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] pci_irq.c: In function ‘mlx5_irq_request_vector’: pci_irq.c:561:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] eq.c: In function ‘comp_irq_request_sf’: eq.c:897:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=] irq_affinity.c: In function ‘irq_pool_request_irq’: irq_affinity.c:74:1: warning: the frame size of 1048 bytes is larger than 1024 bytes [-Wframe-larger-than=] " These warnings indicate that the stack frame size exceeds 1024 bytes in these functions. To resolve this, instead of allocating large memory buffers on the stack, it is better to use kvzalloc to allocate memory dynamically on the heap. This approach reduces stack usage and eliminates these frame size warnings. Acked-by: Junxian Huang <[email protected]> Signed-off-by: Zhu Yanjun <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/lib/py/env.py')
0 files changed, 0 insertions, 0 deletions