i40e: Reduce stack in i40e_dbg_dump_desc
authorJoe Perches <joe@perches.com>
Tue, 18 Nov 2014 05:53:00 +0000 (05:53 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 6 Dec 2014 13:00:01 +0000 (05:00 -0800)
commite6c97234d1b18d4751671df15d52e29daa8a7ba8
tree098869e8e6542a699b2d479c5b07fc0ddad61974
parenta36fdd8e3ea7b1a9dc034c16c9210a831ebc2bea
i40e: Reduce stack in i40e_dbg_dump_desc

Reduce stack use by using kmemdup and not using a very
large struct on stack.

In function ‘i40e_dbg_dump_desc’:
warning: the frame size of 8192 bytes is larger than 2048 bytes [-Wframe-larger-than=]

Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c