linux-stable/drivers
Colin Ian King d978d6d008 net: dsa: bcm_sf2: make const array static, makes object smaller
Don't populate the const array rate_table on the stack but instead it
static. Makes the object code smaller by 46 bytes.

Before:
   text	   data	    bss	    dec	    hex	filename
  29812	   3824	    192	  33828	   8424	drivers/net/dsa/bcm_sf2.o

After:
   text	   data	    bss	    dec	    hex	filename
  29670	   3920	    192	  33782	   83f6	drivers/net/dsa/bcm_sf2.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20201020165029.56383-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-20 20:57:57 -07:00
..
accessibility
acpi dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
amba
android
ata
atm
auxdisplay
base dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
bcma
block networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
bluetooth networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
bus
cdrom
char
clk
clocksource
connector
counter
cpufreq
cpuidle
crypto networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
dax
dca
devfreq
dio
dma
dma-buf dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
edac
eisa
extcon
firewire
firmware Merge branch 'parisc-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2020-10-15 15:42:55 -07:00
fpga
fsi
gnss
gpio
gpu dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
greybus
hid Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2020-10-15 15:11:56 -07:00
hsi
hv hyperv-next for 5.10, part 2 2020-10-15 15:48:06 -07:00
hwmon
hwspinlock
hwtracing
i2c
i3c
ide
idle
iio
infiniband networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
input
interconnect
iommu dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
ipack
irqchip
isdn
leds
lightnvm
macintosh
mailbox
mcb
md
media dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
memory
memstick
message
mfd
misc dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
mmc
most
mtd Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2020-10-15 15:11:56 -07:00
mux
net net: dsa: bcm_sf2: make const array static, makes object smaller 2020-10-20 20:57:57 -07:00
nfc nfc: remove unneeded break 2020-10-20 10:36:41 -07:00
ntb
nubus
nvdimm
nvme
nvmem
of networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
opp
oprofile
parisc
parport
pci dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
reset
rpmsg
rtc
s390 networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
sbus
scsi dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
sfi
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
target networking changes for the 5.10 merge window 2020-10-15 18:42:13 -07:00
tc
tee
thermal
thunderbolt
tty
uio
usb dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
vdpa dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
vfio
vhost
video Merge branch 'parisc-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2020-10-15 15:42:55 -07:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
zorro
Kconfig
Makefile