From: Nicolas Iooss Date: Tue, 23 Aug 2016 08:51:22 +0000 (+0200) Subject: ASoC: simple-card-utils: add __printf attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5668caec5698f14f310fb06bb39595b21d2fe4a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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, 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, ...);