From: Lee Jones Date: Fri, 3 Jul 2020 17:41:40 +0000 (+0100) Subject: usb: typec: tcpm: fusb302: Use 'gnu_printf' format notation X-Git-Tag: v5.10.7~1952^2~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71be1a8aef82e9fee27eab4eaa818492eb846e29;p=platform%2Fkernel%2Flinux-rpi.git usb: typec: tcpm: fusb302: Use 'gnu_printf' format notation Fixes the following W=1 kernel build warning(s): drivers/usb/typec/tcpm/fusb302.c: In function ‘fusb302_log’: drivers/usb/typec/tcpm/fusb302.c:186:2: warning: function ‘fusb302_log’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 186 | _fusb302_log(chip, fmt, args); | ^~~~~~~~~~~~ Cc: Heikki Krogerus Cc: Yueyao Zhu Signed-off-by: Lee Jones Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20200703174148.2749969-23-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index b28face..99562cc 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -178,6 +178,7 @@ abort: mutex_unlock(&chip->logbuffer_lock); } +__printf(2, 3) static void fusb302_log(struct fusb302_chip *chip, const char *fmt, ...) { va_list args;