ASoC: fix 0-day warnings with snd_soc_new_compress()
PATCH 1/1 ASoC: fix 0-day warnings with snd_soc_new_compress()
All conditionally-defined routines in include/sound/soc.h expose a static inline fallback to avoid 0-day warnings and compilation issues, except snd_soc_new_compress().
--- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+)
include/sound/soc.h +5 -0
@@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,int soc_new_pcm (struct snd_soc_pcm_runtime *rtd,int num);#ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num); +#else +static inline int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num) +{ +return 0 ; +}#endif void snd_soc_disconnect_sync (struct device *dev);
Signature · 1 line
2.14.1
Quoted 3 lines · Pierre-Louis Bossart
All conditionally-defined routines in
include/sound/soc.hexpose a static inline fallback to avoid 0-day warnings and compilation issues, exceptsnd_soc_new_compress().
Hey Pierre,
Thanks for the fix, but typically the title should not mention things like reporter. It should describe the change, so something like "Add snd_soc_new_compress() wrapper when CONFIG_SND_SOC_COMPRESS is not defined"
Right now patch title is not describing the change
Quoted 24 lines
Fixes 5db6aab6f36f ('ASoC: topology: Add support for compressed PCMs')Signed-off-by Pierre-Louis Bossart <[email protected]>--- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+)include/sound/soc.h +5
-0@@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,int soc_new_pcm (struct snd_soc_pcm_runtime *rtd,int num);#ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num); +#else +static inline int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num) +{ +return 0 ; +}#endif void snd_soc_disconnect_sync (struct device *dev);Signature · 1 line
2.14.1
Signature · 1 line
~Vinod
Quoted 5 lines · Vinod
Quoted 3 lines · Pierre-Louis Bossart
All conditionally-defined routines in
include/sound/soc.hexpose a static inline fallback to avoid 0-day warnings and compilation issues, exceptsnd_soc_new_compress().
Quoted 7 lines
Hey Pierre,
Thanks for the fix, but typically the title should not mention things like reporter. It should describe the change, so something like "Add
snd_soc_new_compress()wrapper whenCONFIG_SND_SOC_COMPRESSis not defined"Right now patch title is not describing the change
I follow the guidelines in [1] of describing the problem statement, provide details and then how the problem is addressed in the message.
It's not clear to me that you need to describe the solution in the title.
[1] https://www.kernel.org/doc/html/v4.16/process/submitting-patches.html
Quoted 26 lines
Quoted 25 lines
Fixes 5db6aab6f36f ('ASoC: topology: Add support for compressed PCMs')Signed-off-by Pierre-Louis Bossart <[email protected]>--- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+)include/sound/soc.h +5
-0@@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,int soc_new_pcm (struct snd_soc_pcm_runtime *rtd,int num);#ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num); +#else +static inline int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num) +{ +return 0 ; +}#endif void snd_soc_disconnect_sync (struct device *dev);Signature · 1 line
2.14.1
Quoted 13 lines · Pierre-Louis Bossart
Quoted 11 lines · Vinod
Quoted 3 lines · Pierre-Louis Bossart
All conditionally-defined routines in
include/sound/soc.hexpose a static inline fallback to avoid 0-day warnings and compilation issues, exceptsnd_soc_new_compress().Hey Pierre,
Thanks for the fix, but typically the title should not mention things like reporter. It should describe the change, so something like "Add
snd_soc_new_compress()wrapper whenCONFIG_SND_SOC_COMPRESSis not defined"
Quoted 8 lines
Quoted 1 line
Right now patch title is not describing the change
I follow the guidelines in [1] of describing the problem statement, provide details and then how the problem is addressed in the message.
It's not clear to me that you need to describe the solution in the title.
[1] https://www.kernel.org/doc/html/v4.16/process/submitting-patches.html
Well, a good patch describes itself concisely but clearly in the subject line in general. And, in this regard, whether it's reported by 0-day bot or not is pretty much useless. We'd merge a fix not because 0-day bot complains; instead, we merge it because it addresses some real bug. In this particular case, a build error with CONFIG_SND_SOC_COMPRESS=n. So this should have been mentioned in the subject line.
Takashi
Quoted 26 lines
Quoted 25 lines
Quoted 24 lines
Fixes 5db6aab6f36f ('ASoC: topology: Add support for compressed PCMs')Signed-off-by Pierre-Louis Bossart <[email protected]>--- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+)include/sound/soc.h +5
-0@@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,int soc_new_pcm (struct snd_soc_pcm_runtime *rtd,int num);#ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num); +#else +static inline int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num) +{ +return 0 ; +}#endif void snd_soc_disconnect_sync (struct device *dev);Signature · 1 line
2.14.1
Quoted 24 lines · Takashi Iwai
Quoted 13 lines · Pierre-Louis Bossart
Quoted 11 lines · Vinod
Quoted 3 lines · Pierre-Louis Bossart
All conditionally-defined routines in
include/sound/soc.hexpose a static inline fallback to avoid 0-day warnings and compilation issues, exceptsnd_soc_new_compress().Hey Pierre,
Thanks for the fix, but typically the title should not mention things like reporter. It should describe the change, so something like "Add
snd_soc_new_compress()wrapper whenCONFIG_SND_SOC_COMPRESSis not defined"Quoted 8 lines
Quoted 1 line
Right now patch title is not describing the change
I follow the guidelines in [1] of describing the problem statement, provide details and then how the problem is addressed in the message.
It's not clear to me that you need to describe the solution in the title.
[1] https://www.kernel.org/doc/html/v4.16/process/submitting-patches.html
Quoted 7 lines
Well, a good patch describes itself concisely but clearly in the subject line in general. And, in this regard, whether it's reported by 0-day bot or not is pretty much useless. We'd merge a fix not because 0-day bot complains; instead, we merge it because it addresses some real bug. In this particular case, a build error with
CONFIG_SND_SOC_COMPRESS=n. So this should have been mentioned in the subject line.
Got it, thanks!
Quoted 30 lines
Takashi
Quoted 26 lines
Quoted 25 lines
Quoted 24 lines
Fixes 5db6aab6f36f ('ASoC: topology: Add support for compressed PCMs')Signed-off-by Pierre-Louis Bossart <[email protected]>--- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+)include/sound/soc.h +5
-0@@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,int soc_new_pcm (struct snd_soc_pcm_runtime *rtd,int num);#ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num); +#else +static inline int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num) +{ +return 0 ; +}#endif void snd_soc_disconnect_sync (struct device *dev);Signature · 1 line
2.14.1
Mark Brown
maintainerQuoted 3 lines · Takashi Iwai
Well, a good patch describes itself concisely but clearly in the subject line in general. And, in this regard, whether it's reported by 0-day bot or not is pretty much useless. We'd merge a fix not
Describing the source of the problem report is what Reported-by is for.
Mark Brown
maintainerApplied "ASoC: fix 0-day warnings with snd_soc_new_compress()" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: fix 0-day warnings with snd_soc_new_compress()
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
Quoted 1 line
From
0b014d72ebae14c0c6ab3fb36a442fda91e1a1b3Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Tue, 29 May 2018 18:30:02 -0500
Subject: [PATCH] ASoC: fix 0-day warnings with snd_soc_new_compress()
All conditionally-defined routines in include/sound/soc.h expose a static inline fallback to avoid 0-day warnings and compilation issues, except snd_soc_new_compress().
--- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+)
include/sound/soc.h +5 -0
@@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,int soc_new_pcm (struct snd_soc_pcm_runtime *rtd,int num);#ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num); +#else +static inline int snd_soc_new_compress (struct snd_soc_pcm_runtime *rtd,int num) +{ +return 0 ; +}#endif void snd_soc_disconnect_sync (struct device *dev);
Signature · 1 line
2.17.0