Re: [PATCH V4] ALSA: hda/senarytech: add senarytech codec support

From: Takashi Iwai
Date: Mon Jun 17 2024 - 08:00:26 EST


On Mon, 17 Jun 2024 03:46:34 +0200,
bo liu wrote:
>
> Add initial Senarytech codec support for SN6186. Note that this hda
> patch relies on the configuration default registers to be set correctly
> (normally by BIOS/firmware) in order for it to set up pin widgets
> properly.
>
> Signed-off-by: bo liu <bo.liu@xxxxxxxxxxxxxx>

This resulted in a build error when CONFIG_WERROR=y:

sound/pci/hda/patch_senarytech.c: In function ʽsenary_auto_initʼ:
sound/pci/hda/patch_senarytech.c:134:29: error: unused variable ʽspecʼ [-Werror=unused-variable]
134 | struct senary_spec *spec = codec->spec;
| ^~~~
cc1: all warnings being treated as errors

It's senary_auto_init(). Could you fix and resubmit?


thanks,

Takashi