ethtool: reduce stack usage
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 16 Feb 2010 05:51:33 +0000 (21:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 05:51:33 +0000 (21:51 -0800)
commit339c6e99853d2ef1f02ad8a313e079050a300427
tree0c442d67a328b5cf1fa33a8cb41ebcdb0618cda8
parent5cdaaa12866e916d0ada8b56c5f0e543cfc7fe3d
ethtool: reduce stack usage

dev_ethtool() is currently using 604 bytes of stack, even with gcc-4.4.2

objdump -d vmlinux | scripts/checkstack.pl
...
0xc04bbc33 dev_ethtool [vmlinux]: 604
...
Adding noinline attributes to selected functions can reduce stack usage.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c