* [PATCH] ALSA: scarlett2: Add missing sentinel initializer field
@ 2026-04-05 22:25 Panagiotis Petrakopoulos
2026-04-06 8:44 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Panagiotis Petrakopoulos @ 2026-04-05 22:25 UTC (permalink / raw)
To: g, perex, tiwai; +Cc: linux-sound, Panagiotis Petrakopoulos
A "-Wmissing-field-initializers" warning was emitted when compiling the
module using the W=2 option. There is a sentinel initializer field
missing in the end of scarlett2_devices[]. Tested using a
Scarlett Solo 4th gen.
Signed-off-by: Panagiotis Petrakopoulos <npetrakopoulos2003@gmail.com>
---
sound/usb/mixer_scarlett2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/usb/mixer_scarlett2.c b/sound/usb/mixer_scarlett2.c
index fd1fb668929a..8eaa96222759 100644
--- a/sound/usb/mixer_scarlett2.c
+++ b/sound/usb/mixer_scarlett2.c
@@ -2262,7 +2262,7 @@ static const struct scarlett2_device_entry scarlett2_devices[] = {
{ USB_ID(0x1235, 0x820c), &clarett_8pre_info, "Clarett+" },
/* End of list */
- { 0, NULL },
+ { 0, NULL, NULL },
};
/* get the starting port index number for a given port type/direction */
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: scarlett2: Add missing sentinel initializer field
2026-04-05 22:25 [PATCH] ALSA: scarlett2: Add missing sentinel initializer field Panagiotis Petrakopoulos
@ 2026-04-06 8:44 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2026-04-06 8:44 UTC (permalink / raw)
To: Panagiotis Petrakopoulos; +Cc: g, perex, tiwai, linux-sound
On Mon, 06 Apr 2026 00:25:48 +0200,
Panagiotis Petrakopoulos wrote:
>
> A "-Wmissing-field-initializers" warning was emitted when compiling the
> module using the W=2 option. There is a sentinel initializer field
> missing in the end of scarlett2_devices[]. Tested using a
> Scarlett Solo 4th gen.
>
> Signed-off-by: Panagiotis Petrakopoulos <npetrakopoulos2003@gmail.com>
Applied to for-next branch now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-06 8:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05 22:25 [PATCH] ALSA: scarlett2: Add missing sentinel initializer field Panagiotis Petrakopoulos
2026-04-06 8:44 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox