]> asedeno.scripts.mit.edu Git - linux.git/commit
macsec: add noinline tag to avoid a frame size warning
authorFlorian Westphal <fw@strlen.de>
Mon, 1 Apr 2019 20:59:09 +0000 (22:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 01:52:05 +0000 (18:52 -0700)
commite142723700baaa621c1b4649ec17a714a4d4a582
tree321b4dea6c6df34117b5a6283eed0b8cdb852f37
parent3dc93e85f9b10215c61433179f0f03e1d1e4b838
macsec: add noinline tag to avoid a frame size warning

seen with debug config:
drivers/net/macsec.c: In function 'dump_secy':
drivers/net/macsec.c:2597: warning: the frame size of 2216 bytes is larger
than 2048 bytes [-Wframe-larger-than=]

just mark it with noinline_for_stack, this is netlink dump code.

v2: use 'static noinline_for_stack int' consistently

Cc: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c