ASoC: simple-card-utils: add __printf attribute
PATCH v2 1/2 ASoC: simple-card-utils: add __printf attribute
asoc_simple_card_set_dailink_name() uses devm_kvasprintf() to format some of its arguments. Adding a __printf attribute to this function makes it possible to detect at compile-time errors related to format strings.
--- include/sound/simple_card_utils.h | 1 + 1 file changed, 1 insertion(+)
include/sound/simple_card_utils.h +1 -0
@@ -27,6 +27,7 @@ int asoc_simple_card_parse_daifmt(struct device *dev,struct device_node *codec, char *prefix, unsigned int *retfmt); +__printf(3, 4)int asoc_simple_card_set_dailink_name (struct device *dev,struct snd_soc_dai_link *dai_link,const char *fmt, ...);
Signature · 1 line
2.9.3
PATCH v2 2/2 MAINTAINERS: document ASoC header files
include/sound/simple_card_utils.h is handled by ASoC maintainers, as stated in https://lkml.org/lkml/2016/8/22/307, and include/sound/simple_card.h seems to be an ASoC file too. In the future there will be more files named like these ones so introduce a pattern to match them.
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -11012,6 +11012,7 @@ S: Supported F: Documentation/devicetree/bindings/sound/ F: Documentation/sound/alsa/soc/ F: sound/soc/ +F: include/sound/simple*card* F: include/sound/soc* SOUND - DMAENGINE HELPERS
Signature · 1 line
2.9.3
Re: [PATCH v2 2/2] MAINTAINERS: document ASoC header files
Hi
Quoted 8 lines
include/sound/simple_card_utils.his handled by ASoC maintainers, as stated in https://lkml.org/lkml/2016/8/22/307, andinclude/sound/simple_card.hseems to be an ASoC file too. In the future there will be more files named like these ones so introduce a pattern to match them.Signed-off-by Nicolas Iooss <[email protected]>---