Re: [PATCH] RDMA/core: reduce stack using in nldev_stat_get_doit()

From: Leon Romanovsky
Date: Wed Jun 25 2025 - 06:41:57 EST



On Fri, 20 Jun 2025 13:33:26 +0200, Arnd Bergmann wrote:
> In the s390 defconfig, gcc-10 and earlier end up inlining three functions
> into nldev_stat_get_doit(), and each of them uses some 600 bytes of stack.
>
> The result is a function with an overly large stack frame and a warning:
>
> drivers/infiniband/core/nldev.c:2466:1: error: the frame size of 1720 bytes is larger than 1280 bytes [-Werror=frame-larger-than=]
>
> [...]

Applied, thanks!

[1/1] RDMA/core: reduce stack using in nldev_stat_get_doit()
https://git.kernel.org/rdma/rdma/c/43163f4c30f94d

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>