* [PATCH 0/2] ASoC: stm32: sai: fix kbuild errors
@ 2018-10-22 15:10 Olivier Moysan
2018-10-22 15:10 ` [PATCH 1/2] ASoC: stm32: add clock dependency for sai Olivier Moysan
2018-10-22 15:10 ` [PATCH 2/2] ASoC: stm32: sai: fix master clock naming Olivier Moysan
0 siblings, 2 replies; 5+ messages in thread
From: Olivier Moysan @ 2018-10-22 15:10 UTC (permalink / raw)
To: linux-arm-kernel
These patches fix following compilation errors:
- >> sound/soc/stm/stm32_sai_sub.c:260:16: error: field 'hw' has incomplete type
- >> sound/soc/stm/stm32_sai_sub.c:412:3:
warning: 'strncat' specified bound 6 equals source length [-Wstringop-overflow=]
Olivier Moysan (2):
ASoC: stm32: add clock dependency for sai
ASoC: stm32: sai: fix master clock naming
sound/soc/stm/Kconfig | 1 +
sound/soc/stm/stm32_sai_sub.c | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] ASoC: stm32: add clock dependency for sai 2018-10-22 15:10 [PATCH 0/2] ASoC: stm32: sai: fix kbuild errors Olivier Moysan @ 2018-10-22 15:10 ` Olivier Moysan 2018-10-23 9:54 ` Applied "ASoC: stm32: add clock dependency for sai" to the asoc tree Mark Brown 2018-10-22 15:10 ` [PATCH 2/2] ASoC: stm32: sai: fix master clock naming Olivier Moysan 1 sibling, 1 reply; 5+ messages in thread From: Olivier Moysan @ 2018-10-22 15:10 UTC (permalink / raw) To: linux-arm-kernel Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Add COMMON_CLK dependency for STM32 SAI, as it is required by clock provider. Signed-off-by: Olivier Moysan <olivier.moysan@st.com> --- sound/soc/stm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/stm/Kconfig b/sound/soc/stm/Kconfig index 9b2681397dba..c66ffa72057e 100644 --- a/sound/soc/stm/Kconfig +++ b/sound/soc/stm/Kconfig @@ -3,6 +3,7 @@ menu "STMicroelectronics STM32 SOC audio support" config SND_SOC_STM32_SAI tristate "STM32 SAI interface (Serial Audio Interface) support" depends on (ARCH_STM32 && OF) || COMPILE_TEST + depends on COMMON_CLK depends on SND_SOC select SND_SOC_GENERIC_DMAENGINE_PCM select REGMAP_MMIO -- 2.7.4 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Applied "ASoC: stm32: add clock dependency for sai" to the asoc tree 2018-10-22 15:10 ` [PATCH 1/2] ASoC: stm32: add clock dependency for sai Olivier Moysan @ 2018-10-23 9:54 ` Mark Brown 0 siblings, 0 replies; 5+ messages in thread From: Mark Brown @ 2018-10-23 9:54 UTC (permalink / raw) To: linux-arm-kernel The patch ASoC: stm32: add clock dependency for sai 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 e6d7942ce602e99d506a7c08f1935a274645dfda Mon Sep 17 00:00:00 2001 From: Olivier Moysan <olivier.moysan@st.com> Date: Mon, 22 Oct 2018 17:10:45 +0200 Subject: [PATCH] ASoC: stm32: add clock dependency for sai Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Add COMMON_CLK dependency for STM32 SAI, as it is required by clock provider. Signed-off-by: Olivier Moysan <olivier.moysan@st.com> Signed-off-by: Mark Brown <broonie@kernel.org> --- sound/soc/stm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/stm/Kconfig b/sound/soc/stm/Kconfig index 9b2681397dba..c66ffa72057e 100644 --- a/sound/soc/stm/Kconfig +++ b/sound/soc/stm/Kconfig @@ -3,6 +3,7 @@ menu "STMicroelectronics STM32 SOC audio support" config SND_SOC_STM32_SAI tristate "STM32 SAI interface (Serial Audio Interface) support" depends on (ARCH_STM32 && OF) || COMPILE_TEST + depends on COMMON_CLK depends on SND_SOC select SND_SOC_GENERIC_DMAENGINE_PCM select REGMAP_MMIO -- 2.19.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ASoC: stm32: sai: fix master clock naming 2018-10-22 15:10 [PATCH 0/2] ASoC: stm32: sai: fix kbuild errors Olivier Moysan 2018-10-22 15:10 ` [PATCH 1/2] ASoC: stm32: add clock dependency for sai Olivier Moysan @ 2018-10-22 15:10 ` Olivier Moysan 2018-10-23 9:53 ` Applied "ASoC: stm32: sai: fix master clock naming" to the asoc tree Mark Brown 1 sibling, 1 reply; 5+ messages in thread From: Olivier Moysan @ 2018-10-22 15:10 UTC (permalink / raw) To: linux-arm-kernel Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Fix warning issued by strncat when bound equals to source length. Signed-off-by: Olivier Moysan <olivier.moysan@st.com> --- sound/soc/stm/stm32_sai_sub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 31d22abd3204..ea05cc91aa05 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -404,12 +404,11 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai) * String after "_" char is stripped in parent name. */ p = mclk_name; - while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 6))) { + while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 7))) { *p++ = *s++; i++; } - STM_SAI_IS_SUB_A(sai) ? - strncat(p, "a_mclk", 6) : strncat(p, "b_mclk", 6); + STM_SAI_IS_SUB_A(sai) ? strcat(p, "a_mclk") : strcat(p, "b_mclk"); mclk->hw.init = CLK_HW_INIT(mclk_name, pname, &mclk_ops, 0); mclk->sai_data = sai; -- 2.7.4 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Applied "ASoC: stm32: sai: fix master clock naming" to the asoc tree 2018-10-22 15:10 ` [PATCH 2/2] ASoC: stm32: sai: fix master clock naming Olivier Moysan @ 2018-10-23 9:53 ` Mark Brown 0 siblings, 0 replies; 5+ messages in thread From: Mark Brown @ 2018-10-23 9:53 UTC (permalink / raw) To: linux-arm-kernel The patch ASoC: stm32: sai: fix master clock naming 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 6be0f96d799f487f05eb412d362d5a1747d665c2 Mon Sep 17 00:00:00 2001 From: Olivier Moysan <olivier.moysan@st.com> Date: Mon, 22 Oct 2018 17:10:46 +0200 Subject: [PATCH] ASoC: stm32: sai: fix master clock naming Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Fix warning issued by strncat when bound equals to source length. Signed-off-by: Olivier Moysan <olivier.moysan@st.com> Signed-off-by: Mark Brown <broonie@kernel.org> --- sound/soc/stm/stm32_sai_sub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 31d22abd3204..ea05cc91aa05 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -404,12 +404,11 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai) * String after "_" char is stripped in parent name. */ p = mclk_name; - while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 6))) { + while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 7))) { *p++ = *s++; i++; } - STM_SAI_IS_SUB_A(sai) ? - strncat(p, "a_mclk", 6) : strncat(p, "b_mclk", 6); + STM_SAI_IS_SUB_A(sai) ? strcat(p, "a_mclk") : strcat(p, "b_mclk"); mclk->hw.init = CLK_HW_INIT(mclk_name, pname, &mclk_ops, 0); mclk->sai_data = sai; -- 2.19.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-10-23 9:54 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-10-22 15:10 [PATCH 0/2] ASoC: stm32: sai: fix kbuild errors Olivier Moysan 2018-10-22 15:10 ` [PATCH 1/2] ASoC: stm32: add clock dependency for sai Olivier Moysan 2018-10-23 9:54 ` Applied "ASoC: stm32: add clock dependency for sai" to the asoc tree Mark Brown 2018-10-22 15:10 ` [PATCH 2/2] ASoC: stm32: sai: fix master clock naming Olivier Moysan 2018-10-23 9:53 ` Applied "ASoC: stm32: sai: fix master clock naming" to the asoc tree Mark Brown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox