ALSA: hda/ca0132: Make a const array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Wed, 26 May 2021 16:06:16 +0000 (17:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 27 May 2021 06:25:54 +0000 (08:25 +0200)
commitd955782da2901f977ef1ededba8a2764e35c1187
tree5423df4f33b064adfe2c06ab541126e34c29213d
parentb5c2e2c79034eaa4c786e304d094618156eea69b
ALSA: hda/ca0132: Make a const array static, makes object smaller

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

Before:
   text    data     bss     dec     hex filename
 189012   70376     192  259580   3f5fc ./sound/pci/hda/patch_ca0132.o

After:
   text    data     bss     dec     hex filename
 188927   70440     192  259559   3f5e7 ./sound/pci/hda/patch_ca0132.o

(gcc version 10.3.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210526160616.3764119-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c