ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): redmine.journal-18576.20170119093207.2a39390ca7e743c9@lm.renesas.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
commit 5f222a292 ("ASoC: rsnd: use for_each_rsnd_mod_xxx() ...") modifies rsnd_dai_call() to use for_each_rsnd_mod_arrays().
Current rsnd is incrementing iterator in rsnd_mod_next(), but the iterator will indicate +1 position in for_each loop in this case. Incremental position should be inside for()
---
Mark
This is bugfix for v4.10.
Can you please apply this patch to it?
sound/soc/sh/rcar/core.c | 2 -- sound/soc/sh/rcar/rsnd.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)
sound/soc/sh/rcar/core.c +0 -2
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,if (!mod)continue ; - (*iterator)++; -return mod; }
sound/soc/sh/rcar/rsnd.h +2 -2
@@ -374,10 +374,10 @@ struct rsnd_mod *rsnd_mod_next(int *iterator, int array_size);#define for_each_rsnd_mod (iterator, pos, io) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, NULL, 0));) + (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)#define for_each_rsnd_mod_arrays (iterator, pos, io, array, size) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, array, size));) + (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)#define for_each_rsnd_mod_array (iterator, pos, io, array) \ for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree
The patch
ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
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
826e83de58e3bb243b154380837c6506a0575395Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <[email protected]>
Date: Fri, 20 Jan 2017 04:23:29 +0000
Subject: [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator
increment
commit 5f222a292 ("ASoC: rsnd: use for_each_rsnd_mod_xxx() ...") modifies rsnd_dai_call() to use for_each_rsnd_mod_arrays().
Current rsnd is incrementing iterator in rsnd_mod_next(), but the iterator will indicate +1 position in for_each loop in this case. Incremental position should be inside for()
--- sound/soc/sh/rcar/core.c | 2 -- sound/soc/sh/rcar/rsnd.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)
sound/soc/sh/rcar/core.c +0 -2
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,if (!mod)continue ; - (*iterator)++; -return mod; }
sound/soc/sh/rcar/rsnd.h +2 -2
@@ -374,10 +374,10 @@ struct rsnd_mod *rsnd_mod_next(int *iterator, int array_size);#define for_each_rsnd_mod (iterator, pos, io) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, NULL, 0));) + (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)#define for_each_rsnd_mod_arrays (iterator, pos, io, array, size) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, array, size));) + (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)#define for_each_rsnd_mod_array (iterator, pos, io, array) \ for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
Signature · 1 line
2.11.0
Re: Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree
Hi Mark
Thank you for appling my patch.
It seems this is on "topic" branch.
But as I mention on this patch
> This is bugfix for v4.10.
> Can you please apply this patch to it?
is it possible to go to "fix" branch for v4.10-rcX ?
Quoted 81 lines
The patch
ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.gitAll 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,
MarkFrom
826e83de58e3bb243b154380837c6506a0575395Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <[email protected]>
Date: Fri, 20 Jan 2017 04:23:29 +0000
Subject: [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator
incrementcommit
5f222a292("ASoC: rsnd: usefor_each_rsnd_mod_xxx()...") modifiesrsnd_dai_call()to usefor_each_rsnd_mod_arrays().Current rsnd is incrementing iterator in
rsnd_mod_next(), but the iterator will indicate +1 position infor_eachloop in this case. Incremental position should be insidefor()Reported-by Hoan Nguyen An <[email protected]>Signed-off-by Kuninori Morimoto <[email protected]>Signed-off-by Mark Brown <[email protected]>--- sound/soc/sh/rcar/core.c | 2 -- sound/soc/sh/rcar/rsnd.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)sound/soc/sh/rcar/core.c +0
-2@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,if (!mod)continue ; - (*iterator)++; -return mod; }sound/soc/sh/rcar/rsnd.h +2
-2@@ -374,10 +374,10 @@ struct rsnd_mod *rsnd_mod_next(int *iterator, int array_size);#define for_each_rsnd_mod (iterator, pos, io) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, NULL, 0));) + (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)#define for_each_rsnd_mod_arrays (iterator, pos, io, array, size) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, array, size));) + (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)#define for_each_rsnd_mod_array (iterator, pos, io, array) \ for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))Signature · 1 line
2.11.0
Best regards
---
Kuninori Morimoto
Mark Brown
maintainerApplied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree
In reply to Kuninori MorimotoThe patch
ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
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
90ffc1ecc500c04bf43a45d804bb151505c0d6a6Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <[email protected]>
Date: Fri, 20 Jan 2017 04:23:29 +0000
Subject: [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator
increment
commit 5f222a292 ("ASoC: rsnd: use for_each_rsnd_mod_xxx() ...") modifies rsnd_dai_call() to use for_each_rsnd_mod_arrays().
Current rsnd is incrementing iterator in rsnd_mod_next(), but the iterator will indicate +1 position in for_each loop in this case. Incremental position should be inside for()
--- sound/soc/sh/rcar/core.c | 2 -- sound/soc/sh/rcar/rsnd.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-)
sound/soc/sh/rcar/core.c +0 -2
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,if (!mod)continue ; - (*iterator)++; -return mod; }
sound/soc/sh/rcar/rsnd.h +2 -2
@@ -374,10 +374,10 @@ struct rsnd_mod *rsnd_mod_next(int *iterator, int array_size);#define for_each_rsnd_mod (iterator, pos, io) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, NULL, 0));) + (pos = rsnd_mod_next(&iterator, io, NULL, 0)); iterator++)#define for_each_rsnd_mod_arrays (iterator, pos, io, array, size) \ for (iterator = 0; \ - (pos = rsnd_mod_next(&iterator, io, array, size));) + (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)#define for_each_rsnd_mod_array (iterator, pos, io, array) \ for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
Signature · 1 line
2.11.0