From: Colin Ian King Date: Tue, 27 Jun 2023 11:32:53 +0000 (+0100) Subject: ALSA: oxfw: make read-only const array models static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f;p=linux.git 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 Reviewed-by: Takashi Sakamoto Link: https://lore.kernel.org/r/20230627113253.700065-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai --- diff --git a/sound/firewire/oxfw/oxfw.c b/sound/firewire/oxfw/oxfw.c index 9523479fa94a4..63d40f1a914f8 100644 --- a/sound/firewire/oxfw/oxfw.c +++ b/sound/firewire/oxfw/oxfw.c @@ -44,7 +44,7 @@ struct compat_info { static bool detect_loud_models(struct fw_unit *unit) { - const char *const models[] = { + static const char *const models[] = { "Onyxi", "Onyx-i", "Onyx 1640i",