[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190724.154625.790572941356692025.davem@davemloft.net>
Date: Wed, 24 Jul 2019 15:46:25 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: aelior@...vell.com, GR-everest-linux-l2@...vell.com,
Yuval.Mintz@...gic.com, manishc@...vell.com,
michal.kalderon@...vell.com, skalluru@...vell.com,
denis.bolotin@...ium.com, rverma@...vell.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
clang-built-linux@...glegroups.com
Subject: Re: [PATCH net-next] qed: reduce maximum stack frame size
From: Arnd Bergmann <arnd@...db.de>
Date: Mon, 22 Jul 2019 17:01:23 +0200
> 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@...db.de>
Applied to net-next.
Powered by blists - more mailing lists