Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: oxfw: make read-only const array models static

Don't populate the const array on the stack, instead make it static.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230627113253.700065-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Colin Ian King and committed by
Takashi Iwai
d17f0ce9 d6048fdc

+1 -1
+1 -1
sound/firewire/oxfw/oxfw.c
··· 44 44 45 45 static bool detect_loud_models(struct fw_unit *unit) 46 46 { 47 - const char *const models[] = { 47 + static const char *const models[] = { 48 48 "Onyxi", 49 49 "Onyx-i", 50 50 "Onyx 1640i",