Commit 9ce88a1
ALSA: hda/ca0132: make some const arrays static, makes object smaller
Don't populate const arrays on the stack but instead make them
static. Makes the object code smaller by 57 bytes.
Before:
text data bss dec hex filename
173256 38016 192 211464 33a08 sound/pci/hda/patch_ca0132.o
After:
text data bss dec hex filename
172879 38336 192 211407 339cf sound/pci/hda/patch_ca0132.o
(gcc version 10.2.0)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201016224913.687724-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent a97cbcd commit 9ce88a1
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7910 | 7910 | | |
7911 | 7911 | | |
7912 | 7912 | | |
7913 | | - | |
7914 | | - | |
| 7913 | + | |
| 7914 | + | |
| 7915 | + | |
| 7916 | + | |
| 7917 | + | |
| 7918 | + | |
7915 | 7919 | | |
7916 | 7920 | | |
7917 | 7921 | | |
| |||
7925 | 7929 | | |
7926 | 7930 | | |
7927 | 7931 | | |
7928 | | - | |
7929 | | - | |
7930 | | - | |
7931 | | - | |
| 7932 | + | |
| 7933 | + | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
7932 | 7938 | | |
7933 | 7939 | | |
7934 | 7940 | | |
| |||
0 commit comments