Skip to contentSkip to conversation

ALSA: scarlett2: Add missing sentinel initializer field

PATCH Applied Panagiotis Petrakopoulos 2 participants 2 messages Apr 5 – Apr 6

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: scarlett2: Add missing sentinel initializer field

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.

---
 sound/usb/mixer_scarlett2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/usb/mixer_scarlett2.c +1 -1
index fd1fb668929a..8eaa96222759 100644
@@ -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 */
Signature · 1 line
2.53.0
Applied
#1 lore raw
Quoted 7 lines · 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.

Applied to for-next branch now. Thanks.

Takashi