1. 03 Feb, 2017 2 commits
    • Arnd Bergmann's avatar
      staging: fbtft: change 'gamma' array to u32 · 22eb36b8
      Arnd Bergmann authored
      Having a local variable of 1024 bytes on 64-bit architectures is a bit
      too much, and I ran into this warning while trying to see what functions
      use the largest stack:
      
      drivers/staging/fbtft/fbtft-sysfs.c: In function 'store_gamma_curve':
      drivers/staging/fbtft/fbtft-sysfs.c:132:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
      
      As there is no need for 64-bit gamma values (on 32-bit architectures,
      we don't use those either), I'm changing the type from 'unsigned long'
      to 'u32' here, which cuts the required space in half everywhere.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      22eb36b8
    • Arnd Bergmann's avatar
      staging: rtl8192u: move stats_IndicateArray off stack · 26190d41
      Arnd Bergmann authored
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      26190d41
  2. 02 Feb, 2017 18 commits
  3. 01 Feb, 2017 1 commit
  4. 31 Jan, 2017 18 commits
  5. 30 Jan, 2017 1 commit