cxgb4: Fix frame size warning for 32 bit arch
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 25 Mar 2015 14:31:26 +0000 (20:01 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Mar 2015 15:45:29 +0000 (11:45 -0400)
commitdde93dfea53c72b07907d9e44a6e4b1545f6bdc4
tree7070c2a704229f271963edc68aaf18d76156d99d
parent6fd99094de2b83d1d4c8457f2c83483b2828e75a
cxgb4: Fix frame size warning for 32 bit arch

Fixes below warning by dynamically allocating memory

All warnings:

   drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c: In function
   'cctrl_tbl_show':
   >> drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c:689:1: warning: the
   >> frame
   >> size of 1028 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c