mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 17:44:14 +08:00
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>
This commit is contained in:
parent
239486baee
commit
e5668caec5
@ -27,6 +27,7 @@ int asoc_simple_card_parse_daifmt(struct device *dev,
|
|||||||
struct device_node *codec,
|
struct device_node *codec,
|
||||||
char *prefix,
|
char *prefix,
|
||||||
unsigned int *retfmt);
|
unsigned int *retfmt);
|
||||||
|
__printf(3, 4)
|
||||||
int asoc_simple_card_set_dailink_name(struct device *dev,
|
int asoc_simple_card_set_dailink_name(struct device *dev,
|
||||||
struct snd_soc_dai_link *dai_link,
|
struct snd_soc_dai_link *dai_link,
|
||||||
const char *fmt, ...);
|
const char *fmt, ...);
|
||||||
|
Loading…
Reference in New Issue
Block a user