* [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment
[not found] ` <78a38a8e-534c-877b-f130-ee9f5539def0@jinso.co.jp>
@ 2017-01-20 4:23 ` Kuninori Morimoto
2017-01-20 13:37 ` Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree Mark Brown
2017-01-24 18:39 ` Mark Brown
0 siblings, 2 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2017-01-20 4:23 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, Simon, Hoan
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()
Reported-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
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(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 99b5b08..47b370c 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
if (!mod)
continue;
- (*iterator)++;
-
return mod;
}
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
index b90df77..7410ec0 100644
--- a/sound/soc/sh/rcar/rsnd.h
+++ b/sound/soc/sh/rcar/rsnd.h
@@ -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))
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree
2017-01-20 4:23 ` [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment Kuninori Morimoto
@ 2017-01-20 13:37 ` Mark Brown
2017-01-23 0:18 ` Kuninori Morimoto
2017-01-24 18:39 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2017-01-20 13:37 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Hoan, Simon
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
>From 826e83de58e3bb243b154380837c6506a0575395 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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()
Reported-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/sh/rcar/core.c | 2 --
sound/soc/sh/rcar/rsnd.h | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 4bd68de76130..948c5ec87980 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
if (!mod)
continue;
- (*iterator)++;
-
return mod;
}
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
index b90df77662df..7410ec0174db 100644
--- a/sound/soc/sh/rcar/rsnd.h
+++ b/sound/soc/sh/rcar/rsnd.h
@@ -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))
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree
2017-01-20 13:37 ` Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree Mark Brown
@ 2017-01-23 0:18 ` Kuninori Morimoto
0 siblings, 0 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2017-01-23 0:18 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, Simon, Hoan Nguyen An
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 ?
> 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
>
> From 826e83de58e3bb243b154380837c6506a0575395 Mon Sep 17 00:00:00 2001
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 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()
>
> Reported-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
> sound/soc/sh/rcar/core.c | 2 --
> sound/soc/sh/rcar/rsnd.h | 4 ++--
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
> index 4bd68de76130..948c5ec87980 100644
> --- a/sound/soc/sh/rcar/core.c
> +++ b/sound/soc/sh/rcar/core.c
> @@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
> if (!mod)
> continue;
>
> - (*iterator)++;
> -
> return mod;
> }
>
> diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
> index b90df77662df..7410ec0174db 100644
> --- a/sound/soc/sh/rcar/rsnd.h
> +++ b/sound/soc/sh/rcar/rsnd.h
> @@ -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))
>
> --
> 2.11.0
>
Best regards
---
Kuninori Morimoto
^ permalink raw reply [flat|nested] 4+ messages in thread
* Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree
2017-01-20 4:23 ` [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment Kuninori Morimoto
2017-01-20 13:37 ` Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree Mark Brown
@ 2017-01-24 18:39 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2017-01-24 18:39 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Hoan, Simon
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
>From 90ffc1ecc500c04bf43a45d804bb151505c0d6a6 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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()
Reported-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/sh/rcar/core.c | 2 --
sound/soc/sh/rcar/rsnd.h | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 4bd68de76130..948c5ec87980 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -363,8 +363,6 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
if (!mod)
continue;
- (*iterator)++;
-
return mod;
}
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
index b90df77662df..7410ec0174db 100644
--- a/sound/soc/sh/rcar/rsnd.h
+++ b/sound/soc/sh/rcar/rsnd.h
@@ -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))
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-24 18:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-3233.20170119073933@lm.renesas.com>
[not found] ` <redmine.journal-18576.20170119093207.2a39390ca7e743c9@lm.renesas.com>
[not found] ` <78a38a8e-534c-877b-f130-ee9f5539def0@jinso.co.jp>
2017-01-20 4:23 ` [PATCH] ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment Kuninori Morimoto
2017-01-20 13:37 ` Applied "ASoC: rsnd: fixup for_each_rsnd_mod_array{s} iterator increment" to the asoc tree Mark Brown
2017-01-23 0:18 ` Kuninori Morimoto
2017-01-24 18:39 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.