Skip to contentSkip to conversation

ASoC: rcar: remove unused variable

PATCH Superseded Arnd Bergmann 3 participants 7 messages Nov 23, 2015 – Nov 26, 2015

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

PATCH 1/1 ASoC: rcar: remove unused variable

After a recent cleanup, the soc_card variable became unused and now produces a warning:

soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable]

This removes the variable.

Fixes 1a497983a5ae ("ASoC: Change the PCM runtime array to a list")
sound/soc/sh/rcar/core.c +0 -1
index c6685f14b9cb..90b244c1f526 100644
@@ -798,7 +798,6 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
 			    void (*update)(struct rsnd_dai_stream *io,
 					   struct rsnd_mod *mod))
 {
-	struct snd_soc_card *soc_card = rtd->card;
 	struct snd_card *card = rtd->card->snd_card;
 	struct snd_kcontrol *kctrl;
 	struct snd_kcontrol_new knew = {
maintainer
#1 lore raw

Applied "ASoC: rcar: remove unused variable" to the asoc tree

The patch

ASoC: rcar: remove unused variable

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From ccae40fa973f5b0eec5d5ad27e81c5a2b95f7b7c Mon Sep 17 00:00:00 2001

From: Arnd Bergmann <[email protected]>
Date: Mon, 23 Nov 2015 10:35:54 +0100
Subject: [PATCH] ASoC: rcar: remove unused variable

After a recent cleanup, the soc_card variable became unused and now produces a warning:

soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable]

This removes the variable.

Fixes 1a497983a5ae ("ASoC: Change the PCM runtime array to a list")
---
 sound/soc/sh/rcar/core.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/sh/rcar/core.c +0 -1
index 81a6bdb6848c..247c3d248257 100644
@@ -798,7 +798,6 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
 			    void (*update)(struct rsnd_dai_stream *io,
 					   struct rsnd_mod *mod))
 {
-	struct snd_soc_card *soc_card = rtd->card;
 	struct snd_card *card = rtd->card->snd_card;
 	struct snd_kcontrol *kctrl;
 	struct snd_kcontrol_new knew = {
Signature · 1 line
2.6.2
#2 lore raw
In reply to Arnd Bergmann

Hi Arnd, Mark

Quoted 16 lines

After a recent cleanup, the soc_card variable became unused and now produces a warning:

soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable]

This removes the variable.

Fixes 1a497983a5ae ("ASoC: Change the PCM runtime array to a list")
sound/soc/sh/rcar/core.c +0 -0
index c6685f14b9cb..90b244c1f526 100644

sound/soc/sh/rcar/core.c static int __rsnd_kctrl_new(struct rsnd_mod *mod, · line 803

Quoted 7 lines
sound/soc/sh/rcar/core.c +0 -1
@@ -798,7 +798,6 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
 			    void (*update)(struct rsnd_dai_stream *io,
 					   struct rsnd_mod *mod))
 {
-	struct snd_soc_card *soc_card = rtd->card;
 	struct snd_card *card = rtd->card->snd_card;
 	struct snd_kcontrol *kctrl;
 	struct snd_kcontrol_new knew = {

It seems this patch was accepted to topic/rcar branch, but I got compile error

/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c:807:18: error: 'soc_card' undeclared (first use in this function)
.index = rtd - soc_card->rtd,

                  ^

/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c:807:18: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [sound/soc/sh/rcar/core.o] エラー 1
make[6]: *** 未完了のジョブを待っています....
make[5]: *** [sound/soc/sh/rcar] エラー 2
make[4]: *** [sound/soc/sh] エラー 2

This __rsnd_kctrl_new() is using "soc_card"...

#3 lore raw
Quoted 33 lines · On Wednesday 25 November 2015 06:25:36 Kuninori Morimoto wrote:

Hi Arnd, Mark

Quoted 16 lines

After a recent cleanup, the soc_card variable became unused and now produces a warning:

soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable]

This removes the variable.

Fixes 1a497983a5ae ("ASoC: Change the PCM runtime array to a list")
sound/soc/sh/rcar/core.c +0 -0
index c6685f14b9cb..90b244c1f526 100644

sound/soc/sh/rcar/core.c static int __rsnd_kctrl_new(struct rsnd_mod *mod, · line 803

Quoted 7 lines
sound/soc/sh/rcar/core.c +0 -1
@@ -798,7 +798,6 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
 			    void (*update)(struct rsnd_dai_stream *io,
 					   struct rsnd_mod *mod))
 {
-	struct snd_soc_card *soc_card = rtd->card;
 	struct snd_card *card = rtd->card->snd_card;
 	struct snd_kcontrol *kctrl;
 	struct snd_kcontrol_new knew = {

It seems this patch was accepted to topic/rcar branch, but I got compile error

/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c:807:18: error: 'soc_card' undeclared (first use in this function)
.index = rtd - soc_card->rtd,

Quoted 8 lines
                  ^

/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c:807:18: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [sound/soc/sh/rcar/core.o] ??? 1
make[6]: *** ??????????????....
make[5]: *** [sound/soc/sh/rcar] ??? 2
make[4]: *** [sound/soc/sh] ??? 2

This __rsnd_kctrl_new() is using "soc_card"...

It looks like the commit that removed the user of that variable is in the "topic/pcm-list" branch instead of "topic/rcar".

Arnd

#4 lore raw

Hi Mark, Arnd

Quoted 10 lines
Quoted 10 lines

/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c: In function '__rsnd_kctrl_new':
/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c:807:18: error: 'soc_card' undeclared (first use in this function)
.index = rtd - soc_card->rtd,

                  ^

/opt/home/morimoto/WORK/linux/sound/soc/sh/rcar/core.c:807:18: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [sound/soc/sh/rcar/core.o] エラー 1
make[6]: *** 未完了のジョブを待っています....
make[5]: *** [sound/soc/sh/rcar] エラー 2
make[4]: *** [sound/soc/sh] エラー 2

Quoted 4 lines
Quoted 1 line

This __rsnd_kctrl_new() is using "soc_card"...

It looks like the commit that removed the user of that variable is in the "topic/pcm-list" branch instead of "topic/rcar".

Mark

It is possible to remove this patch from topic/rcar, and, apply it to topic/pcm-list ?

ccae40fa973f5b0eec5d5ad27e81c5a2b95f7b7c
(" ASoC: rcar: remove unused variable")

maintainer
#5 lore raw
Quoted 5 lines · Kuninori Morimoto

It is possible to remove this patch from topic/rcar, and, apply it to topic/pcm-list ?

ccae40fa973f5b0eec5d5ad27e81c5a2b95f7b7c
(" ASoC: rcar: remove unused variable")

I did that already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151126/ab090d83/attachment.sig>

#6 lore raw

Hi

Quoted 7 lines
Quoted 5 lines

It is possible to remove this patch from topic/rcar, and, apply it to topic/pcm-list ?

ccae40fa973f5b0eec5d5ad27e81c5a2b95f7b7c
(" ASoC: rcar: remove unused variable")

I did that already.

Thanks !