diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2016-08-23 04:51:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-24 11:27:04 -0400 |
commit | e5668caec5698f14f310fb06bb39595b21d2fe4a (patch) | |
tree | a2ab57a334169f19635d73ca654c9fc3796104c9 /include/sound | |
parent | 239486baee2bbefd81053cd4a168f90ce5c46fa2 (diff) |
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.
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 403ec92164fc..fd6412551145 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h | |||
@@ -27,6 +27,7 @@ int asoc_simple_card_parse_daifmt(struct device *dev, | |||
27 | struct device_node *codec, | 27 | struct device_node *codec, |
28 | char *prefix, | 28 | char *prefix, |
29 | unsigned int *retfmt); | 29 | unsigned int *retfmt); |
30 | __printf(3, 4) | ||
30 | int asoc_simple_card_set_dailink_name(struct device *dev, | 31 | int asoc_simple_card_set_dailink_name(struct device *dev, |
31 | struct snd_soc_dai_link *dai_link, | 32 | struct snd_soc_dai_link *dai_link, |
32 | const char *fmt, ...); | 33 | const char *fmt, ...); |