* [PATCH 1/2] ASoC: topology: Remove unneeded semicolon
@ 2020-04-15 16:24 Amadeusz Sławiński
2020-04-15 16:24 ` [PATCH 2/2] ASoC: topology: Fix endianness issue Amadeusz Sławiński
2020-04-15 17:15 ` Applied "ASoC: topology: Remove unneeded semicolon" " Mark Brown
0 siblings, 2 replies; 4+ messages in thread
From: Amadeusz Sławiński @ 2020-04-15 16:24 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Takashi Iwai
Cc: alsa-devel, Amadeusz Sławiński
There is unnecessary semicolon after last bracket of if statement,
remove it.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
sound/soc/soc-topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 33e8d189ba2f..a5cd73742dc5 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -2390,7 +2390,7 @@ static int soc_tplg_link_elems_load(struct soc_tplg *tplg,
tplg->pos += le32_to_cpu(hdr->size) +
le32_to_cpu(hdr->payload_size);
return 0;
- };
+ }
/* check the element size and count */
link = (struct snd_soc_tplg_link_config *)tplg->pos;
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ASoC: topology: Fix endianness issue
2020-04-15 16:24 [PATCH 1/2] ASoC: topology: Remove unneeded semicolon Amadeusz Sławiński
@ 2020-04-15 16:24 ` Amadeusz Sławiński
2020-04-15 16:59 ` Applied "ASoC: topology: Fix endianness issue" to the asoc tree Mark Brown
2020-04-15 17:15 ` Applied "ASoC: topology: Remove unneeded semicolon" " Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Amadeusz Sławiński @ 2020-04-15 16:24 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Takashi Iwai
Cc: alsa-devel, Amadeusz Sławiński
As done in already existing cases, we should use le32_to_cpu macro while
accessing hdr->magic. Found with sparse.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
sound/soc/soc-topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index a5cd73742dc5..49875978a1ce 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -2652,7 +2652,7 @@ static int soc_valid_header(struct soc_tplg *tplg,
}
/* big endian firmware objects not supported atm */
- if (hdr->magic == SOC_TPLG_MAGIC_BIG_ENDIAN) {
+ if (le32_to_cpu(hdr->magic) == SOC_TPLG_MAGIC_BIG_ENDIAN) {
dev_err(tplg->dev,
"ASoC: pass %d big endian not supported header got %x at offset 0x%lx size 0x%zx.\n",
tplg->pass, hdr->magic,
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Applied "ASoC: topology: Fix endianness issue" to the asoc tree
2020-04-15 16:24 ` [PATCH 2/2] ASoC: topology: Fix endianness issue Amadeusz Sławiński
@ 2020-04-15 16:59 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2020-04-15 16:59 UTC (permalink / raw)
To: Amadeusz Sławiński
Cc: alsa-devel, Mark Brown, Liam Girdwood,
Amadeusz Sławiński, Takashi Iwai
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2244 bytes --]
The patch
ASoC: topology: Fix endianness issue
has been applied to the asoc tree at
https://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 26d87881590fd55ccdd8f829498d7b3033f81990 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?=
<amadeuszx.slawinski@linux.intel.com>
Date: Wed, 15 Apr 2020 12:24:35 -0400
Subject: [PATCH] ASoC: topology: Fix endianness issue
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
As done in already existing cases, we should use le32_to_cpu macro while
accessing hdr->magic. Found with sparse.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20200415162435.31859-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/soc-topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 33e8d189ba2f..6df3b0d12d87 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -2652,7 +2652,7 @@ static int soc_valid_header(struct soc_tplg *tplg,
}
/* big endian firmware objects not supported atm */
- if (hdr->magic == SOC_TPLG_MAGIC_BIG_ENDIAN) {
+ if (le32_to_cpu(hdr->magic) == SOC_TPLG_MAGIC_BIG_ENDIAN) {
dev_err(tplg->dev,
"ASoC: pass %d big endian not supported header got %x at offset 0x%lx size 0x%zx.\n",
tplg->pass, hdr->magic,
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Applied "ASoC: topology: Remove unneeded semicolon" to the asoc tree
2020-04-15 16:24 [PATCH 1/2] ASoC: topology: Remove unneeded semicolon Amadeusz Sławiński
2020-04-15 16:24 ` [PATCH 2/2] ASoC: topology: Fix endianness issue Amadeusz Sławiński
@ 2020-04-15 17:15 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2020-04-15 17:15 UTC (permalink / raw)
To: Amadeusz Sławiński
Cc: alsa-devel, Mark Brown, Liam Girdwood,
Amadeusz Sławiński, Takashi Iwai
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2112 bytes --]
The patch
ASoC: topology: Remove unneeded semicolon
has been applied to the asoc tree at
https://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 980f91778a2f4dcca43d16b7a83feda8df5c96e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?=
<amadeuszx.slawinski@linux.intel.com>
Date: Wed, 15 Apr 2020 12:24:34 -0400
Subject: [PATCH] ASoC: topology: Remove unneeded semicolon
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
There is unnecessary semicolon after last bracket of if statement,
remove it.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20200415162435.31859-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/soc-topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 33e8d189ba2f..a5cd73742dc5 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -2390,7 +2390,7 @@ static int soc_tplg_link_elems_load(struct soc_tplg *tplg,
tplg->pos += le32_to_cpu(hdr->size) +
le32_to_cpu(hdr->payload_size);
return 0;
- };
+ }
/* check the element size and count */
link = (struct snd_soc_tplg_link_config *)tplg->pos;
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-04-15 17:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 16:24 [PATCH 1/2] ASoC: topology: Remove unneeded semicolon Amadeusz Sławiński
2020-04-15 16:24 ` [PATCH 2/2] ASoC: topology: Fix endianness issue Amadeusz Sławiński
2020-04-15 16:59 ` Applied "ASoC: topology: Fix endianness issue" to the asoc tree Mark Brown
2020-04-15 17:15 ` Applied "ASoC: topology: Remove unneeded semicolon" " 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.