OSDN Git Service

staging: rtl8723bs: core: make array op_class static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Fri, 6 Sep 2019 17:50:21 +0000 (18:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2019 19:57:55 +0000 (21:57 +0200)
commit53e3a7e1d7af57f4597e6d6329f0f3d911f21e60
treeb1900dbcea885ed67847ee18204b29313ae33c8b
parent6f406c73037f0ce2b9e30ffcb9d44661da7b7006
staging: rtl8723bs: core: make array op_class static const, makes object smaller

Don't populate the array op_class on the stack but instead make it
static const. Makes the object code smaller by 64 bytes.

Before:
   text    data     bss     dec     hex filename
  93553    7944    5056  106553   1a039 rtl8723bs/core/rtw_mlme_ext.o

After:
   text    data     bss     dec     hex filename
  93425    8008    5056  106489   19ff9 rtl8723bs/core/rtw_mlme_ext.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190906175021.25103-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c