]> git.baikalelectronics.ru Git - kernel.git/commit
net: wireless: make a const array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 16 Nov 2020 18:16:36 +0000 (18:16 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2020 11:50:02 +0000 (12:50 +0100)
commit709dca536c4f8ca561c81a8c62c91510032dadfc
tree209883f4f60ce231ce2b4bdeb17f349b1d444acc
parentfe0509ba34fb7edfcced522ec4c89ed1dbf626e2
net: wireless: make a const array static, makes object smaller

Don't populate the const array bws on the stack but instead it
static. Makes the object code smaller by 80 bytes:

Before:
   text    data     bss     dec     hex filename
  85694   16865    1216  103775   1955f ./net/wireless/reg.o

After:
   text    data     bss     dec     hex filename
  85518   16961    1216  103695   1950f ./net/wireless/reg.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201116181636.362729-1-colin.king@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c