aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105/sja1105_main.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-28 12:31:44 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-28 09:30:05 -0700
commitf7110b753b77b0639d831ad822aad557b2cf000e (patch)
treebeae441aae49f686ad9b70d6a584ec679e1668bc /drivers/net/dsa/sja1105/sja1105_main.c
parentMerge branch 'stmmac-10GbE-using-XGMAC' (diff)
downloadlinux-dev-f7110b753b77b0639d831ad822aad557b2cf000e.tar.xz
linux-dev-f7110b753b77b0639d831ad822aad557b2cf000e.zip
hinic: reduce rss_init stack usage
On 32-bit architectures, putting an array of 256 u32 values on the stack uses more space than the warning limit: drivers/net/ethernet/huawei/hinic/hinic_main.c: In function 'hinic_rss_init': drivers/net/ethernet/huawei/hinic/hinic_main.c:286:1: error: the frame size of 1068 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] I considered changing the code to use u8 values here, since that's all the hardware supports, but dynamically allocating the array is a more isolated fix here. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105_main.c')
0 files changed, 0 insertions, 0 deletions