In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n,
gcc warns about an unused variable:
sound/soc/intel/skylake/skl.c: In function ‘probe_codec’:
sound/soc/intel/skylake/skl.c:729:18: error: unused variable ‘skl’ [-Werror=unused-variable]
struct skl_dev *skl = bus_to_skl(bus);
^~~
cc1: all warnings being treated as errors
Fixes: 3fd63658caed9 ("ASoC: Intel: Drop hdac_ext usage for codec device creation")
Signed-off-by: Gaosheng Cui <[email protected]>
---
sound/soc/intel/skylake/skl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index c7c1cad2a753..52a041d6144c 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -726,8 +726,8 @@ static int probe_codec(struct hdac_bus *bus, int addr)
unsigned int cmd = (addr << 28) | (AC_NODE_ROOT << 20) |
(AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
unsigned int res = -1;
- struct skl_dev *skl = bus_to_skl(bus);
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC)
+ struct skl_dev *skl = bus_to_skl(bus);
struct hdac_hda_priv *hda_codec;
#endif
struct hda_codec *codec;
--
2.25.1
On 2022-08-22 5:51 AM, Gaosheng Cui wrote:
> In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n,
> gcc warns about an unused variable:
>
> sound/soc/intel/skylake/skl.c: In function ‘probe_codec’:
> sound/soc/intel/skylake/skl.c:729:18: error: unused variable ‘skl’ [-Werror=unused-variable]
> struct skl_dev *skl = bus_to_skl(bus);
> ^~~
> cc1: all warnings being treated as errors
>
> Fixes: 3fd63658caed9 ("ASoC: Intel: Drop hdac_ext usage for codec device creation")
> Signed-off-by: Gaosheng Cui <[email protected]>
Thanks for the fix.
Acked-by: Cezary Rojewski <[email protected]>
> ---
> sound/soc/intel/skylake/skl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
> index c7c1cad2a753..52a041d6144c 100644
> --- a/sound/soc/intel/skylake/skl.c
> +++ b/sound/soc/intel/skylake/skl.c
> @@ -726,8 +726,8 @@ static int probe_codec(struct hdac_bus *bus, int addr)
> unsigned int cmd = (addr << 28) | (AC_NODE_ROOT << 20) |
> (AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
> unsigned int res = -1;
> - struct skl_dev *skl = bus_to_skl(bus);
> #if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC)
> + struct skl_dev *skl = bus_to_skl(bus);
> struct hdac_hda_priv *hda_codec;
> #endif
> struct hda_codec *codec;
On Tue, 13 Sep 2022 16:03:35 +0200,
Cezary Rojewski wrote:
>
> On 2022-08-22 5:51 AM, Gaosheng Cui wrote:
> > In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n,
> > gcc warns about an unused variable:
> >
> > sound/soc/intel/skylake/skl.c: In function ?probe_codec?:
> > sound/soc/intel/skylake/skl.c:729:18: error: unused variable ?skl? [-Werror=unused-variable]
> > struct skl_dev *skl = bus_to_skl(bus);
> > ^~~
> > cc1: all warnings being treated as errors
> >
> > Fixes: 3fd63658caed9 ("ASoC: Intel: Drop hdac_ext usage for codec device creation")
> > Signed-off-by: Gaosheng Cui <[email protected]>
>
> Thanks for the fix.
>
> Acked-by: Cezary Rojewski <[email protected]>
Applied now.
Takashi
On Mon, 22 Aug 2022 11:51:33 +0800, Gaosheng Cui wrote:
> In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n,
> gcc warns about an unused variable:
>
> sound/soc/intel/skylake/skl.c: In function ‘probe_codec’:
> sound/soc/intel/skylake/skl.c:729:18: error: unused variable ‘skl’ [-Werror=unused-variable]
> struct skl_dev *skl = bus_to_skl(bus);
> ^~~
> cc1: all warnings being treated as errors
>
> [...]
Applied to
broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: fix unused-variable warning in probe_codec
commit: 515626a33a194c4caaf2879dbf9e00e882582af0
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
On Wed, Sep 14, 2022 at 12:27:28PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:
> > [1/1] ASoC: Intel: fix unused-variable warning in probe_codec
> > commit: 515626a33a194c4caaf2879dbf9e00e882582af0
> I thought the buggy commit 3fd63658caed9 was present only in my tree
> for now, but if it's in your tree, that's fine to apply through
> yours. Then I'll drop from mine.
Huh, right - I think you're right here and it is only in your
tree, it just didn't trigger any issues in my coverage tests
prior to merge. Probably best to leave it in your tree and
either have a double apply or I'll revert it from mine. Either
way it'll get fixed by the time it gets sent to Linus.
I'd not remembered that you had any extra stuff for ASoC in your
tree, sorry.
On Wed, 14 Sep 2022 12:31:23 +0200,
Mark Brown wrote:
>
> On Wed, Sep 14, 2022 at 12:27:28PM +0200, Takashi Iwai wrote:
> > Mark Brown wrote:
>
> > > [1/1] ASoC: Intel: fix unused-variable warning in probe_codec
> > > commit: 515626a33a194c4caaf2879dbf9e00e882582af0
>
> > I thought the buggy commit 3fd63658caed9 was present only in my tree
> > for now, but if it's in your tree, that's fine to apply through
> > yours. Then I'll drop from mine.
>
> Huh, right - I think you're right here and it is only in your
> tree, it just didn't trigger any issues in my coverage tests
> prior to merge. Probably best to leave it in your tree and
> either have a double apply or I'll revert it from mine. Either
> way it'll get fixed by the time it gets sent to Linus.
>
> I'd not remembered that you had any extra stuff for ASoC in your
> tree, sorry.
No problem, it was rather an exception.
I don't mind to keep in both trees; it should be resolved at the merge
of ASoC tree before the PR to Linus, if any.
thanks,
Takashi
On Wed, 14 Sep 2022 11:40:17 +0200,
Mark Brown wrote:
>
> On Mon, 22 Aug 2022 11:51:33 +0800, Gaosheng Cui wrote:
> > In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n,
> > gcc warns about an unused variable:
> >
> > sound/soc/intel/skylake/skl.c: In function ?probe_codec?:
> > sound/soc/intel/skylake/skl.c:729:18: error: unused variable ?skl? [-Werror=unused-variable]
> > struct skl_dev *skl = bus_to_skl(bus);
> > ^~~
> > cc1: all warnings being treated as errors
> >
> > [...]
>
> Applied to
>
> broonie/sound.git for-next
>
> Thanks!
>
> [1/1] ASoC: Intel: fix unused-variable warning in probe_codec
> commit: 515626a33a194c4caaf2879dbf9e00e882582af0
>
> All being well this means that it will be integrated into the linux-next
> tree (usually sometime in the next 24 hours) and sent to Linus during
> the next merge window (or sooner if it is a bug fix), however if
> problems are discovered then the patch may be dropped or reverted.
>
> You may get further e-mails resulting from automated or manual testing
> and review of the tree, please engage with people reporting problems and
> send followup patches addressing any issues that are reported if needed.
>
> If any updates are required or you are submitting further changes they
> should be sent as incremental updates against current git, existing
> patches will not be replaced.
>
> Please add any relevant lists and maintainers to the CCs when replying
> to this mail.
I thought the buggy commit 3fd63658caed9 was present only in my tree
for now, but if it's in your tree, that's fine to apply through
yours. Then I'll drop from mine.
thanks,
Takashi