From: Mathieu Malaterre Date: Tue, 12 Mar 2019 20:21:26 +0000 (+0100) Subject: kernel/workqueue: Use __printf markup to silence compiler in function 'alloc_workqueue' X-Git-Tag: v5.2-rc1~109^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2775bbc1d58ce630517dfe86090c166f27d719f;p=thirdparty%2Fkernel%2Flinux.git kernel/workqueue: Use __printf markup to silence compiler in function 'alloc_workqueue' Silence warnings (triggered at W=1) by adding relevant __printf attributes. kernel/workqueue.c:4249:2: warning: function 'alloc_workqueue' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre Signed-off-by: Tejun Heo --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 4026d1871407e..56b7cf898f108 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -4208,6 +4208,7 @@ static int init_rescuer(struct workqueue_struct *wq) return 0; } +__printf(1, 4) struct workqueue_struct *alloc_workqueue(const char *fmt, unsigned int flags, int max_active, ...)