From e8f50e1915beccee661c409ab91b26945158eeac Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 15 Sep 2015 13:32:40 -0700 Subject: [PATCH] scst_dlm: Add __printf attribute to create_st_wq() --- scst/src/scst_dlm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_dlm.c b/scst/src/scst_dlm.c index 438486244..3ba9f60c4 100644 --- a/scst/src/scst_dlm.c +++ b/scst/src/scst_dlm.c @@ -1298,7 +1298,8 @@ unlock_ls: mutex_unlock(&pr_dlm->ls_mutex); } -static struct workqueue_struct *create_st_wq(const char *fmt, ...) +static struct workqueue_struct *__printf(1, 2) +create_st_wq(const char *fmt, ...) { struct workqueue_struct *wq = NULL; va_list ap;