]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: move stats_IndicateArray off stack
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Feb 2017 14:38:24 +0000 (15:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 12:01:36 +0000 (13:01 +0100)
commitfad3ec727fa8bdc1954c6db46ba8a08f77e49780
treefcea84aab5a1157cafe8e4c467bb383c55708489
parent968350d2d5c10f3b73b28bcbbdabb0c9b28926dc
staging: rtl8192u: move stats_IndicateArray off stack

Putting 128 pointers on the stack is rather wasteful, in particular
on 64-bit architectures:

drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c: In function 'RxPktPendingTimeout':
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c:92:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]

The rtl8192e driver has the exact same function, except that stores the
array in its 'ieee' structure. Let's do it the same way here for consistency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c